5.3.5 Structures and Unions

MPLAB XC8 C Compiler supports struct and union types. Structures and unions only differ in the memory offset applied to each member.

These types will be at least 1 byte wide. Bit-fields and _Bool objects are fully supported.

The members of structures and unions cannot be objects of type __bit.

Structures and unions can be passed freely as function arguments and function return values. Pointers to structures and unions are fully supported.