Home > Back-end >  C structure problem
C structure problem

Time:09-29

Struct gate *
Gate_create (void) {
Struct gate * g=skynet_malloc (sizeof (* g));
Memset (g, 0, sizeof (* g));
G - & gt; Listen_id=1;
Return g;
}
This code is a structure pointer, or structure pointer function, or both are not, then what is he???????

CodePudding user response:

Function return value is a structure pointer,

CodePudding user response:

This is a function that the function return value is a pointer to structure

CodePudding user response:

 
Return struct gate *;
  • Related