I am looking at a structure Cwith some syntax that I have never seen before. The structure is as follows:
typedef struct structExample {
int member1;
int member2
} * structNAME;
I know that usually with a structure:
typedef struct structExample {
int member1;
int member2
} structNAME;
I could turn to a member of the second definition of structure, saying:
structNAME* tempStruct = malloc(sizeof(structNAME));
tempstruct->member1;
What does this extra do *in the first structure definition and how can I refer to the members of the first structure definition?
Osley source
share