hey guys just wondering how i could access a member from the structure definitions below but access it from a function called systemInit like the one below.
iv tried going menu->PriceType->dollars; but that wont work it says there is no member.
And 1 other question if i needed to intialize the struct members which ones would i need to initialize this eventually is also going to be used for linked lists?
typedef struct category* CategoryTypePtr;
typedef struct item* ItemTypePtr;
/* Structure definitions. */
typedef struct price
typedef struct item
char itemID[ID_LEN + 1];
char itemName[MAX_NAME_LEN + 1];
typedef struct category
char categoryID[ID_LEN + 1];
char categoryName[MAX_NAME_LEN + 1];
char drinkType; /* (H)ot or (C)old. */
typedef struct gjc
void systemInit(GJCType* menu)