CS318 - Pintos
Pintos source browser for JHU CS318 course
Macros | Typedefs
stddef.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NULL   ((void *) 0)
 
#define offsetof(TYPE, MEMBER)   ((size_t) &((TYPE *) 0)->MEMBER)
 

Typedefs

typedef __PTRDIFF_TYPE__ ptrdiff_t
 GCC predefines the types we need for ptrdiff_t and size_t, so that we don't have to guess. More...
 
typedef __SIZE_TYPE__ size_t
 lib/stddef.h More...
 

Macro Definition Documentation

◆ NULL

#define NULL   ((void *) 0)

Definition at line 4 of file stddef.h.

◆ offsetof

#define offsetof (   TYPE,
  MEMBER 
)    ((size_t) &((TYPE *) 0)->MEMBER)

Definition at line 5 of file stddef.h.

Typedef Documentation

◆ ptrdiff_t

typedef __PTRDIFF_TYPE__ ptrdiff_t

GCC predefines the types we need for ptrdiff_t and size_t, so that we don't have to guess.

Definition at line 9 of file stddef.h.

◆ size_t

typedef __SIZE_TYPE__ size_t

lib/stddef.h

Definition at line 10 of file stddef.h.