⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 of

📁 Algorithms for Image Processing and Computer Vision Source Code
💻
字号:
@c ----------------------------------------------------------------------
@node offsetof, misc
@heading @code{offsetof}
@subheading Syntax

@example
#include <stddef.h>

size_t offsetof(struct_type, member)
@end example

@subheading Description

This macro returns the byte offset from a structure of type
@var{struct_type} to a member @var{member} therein.

@subheading Return Value

The byte offset

@subheading Example

@example

struct foo @{
  int a;
  int b;
@};

struct foo f;
read(0, (char *)f+offsetof(struct foo, b), 4);
@end example

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -