English
Language : 

CC78K0S Datasheet, PDF (180/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
(10) stddef.h
In this header, the following objects have been declared and defined.
[Declaration of int type ptrdiff_t]
typedef int ptrdiff_t;
[Declaration of unsigned int type size_t]
typedef unsigned int size_t;
[Definition of macro name NULL]
#define NULL (void*)0;
[Definition of macro name offsetof]
#define offsetof(type, member) ((size_t)&(((type*)0)->member))
• offsetof (type, member specifier)
offsetof is expanded to the general integer constant expression that has type size_t and the value is an
offset value in byte units from the start of the structure (that is specified by the type) to the structure member
(that is specified by the member specifier).
The member specifier must be the one that the result of evaluation of the expression & (t. member specifier)
becomes an address constant when static type t; is declared. When the specified member is a bit field, the
operation will not be guaranteed.
180
User’s Manual U14872EJ1V0UM