Coda Distributed File System
Macros
struct.h File Reference
#include <coda_offsetof.h>
Include dependency graph for struct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define fldsiz(type, member)   (sizeof(((type *)0)->member))
 
#define strbase(type, p, member)    ((type *)((char *)(p) - coda_offsetof(type, member)))
 

Macro Definition Documentation

◆ fldsiz

#define fldsiz (   type,
  member 
)    (sizeof(((type *)0)->member))

◆ strbase

#define strbase (   type,
  p,
  member 
)     ((type *)((char *)(p) - coda_offsetof(type, member)))