MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stklist_pop

Function stklist_pop

lib/ff_memory.c:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static inline void *stklist_pop(StackList_t *p)
125{
126 int head = 0;
127
128 if (p==NULL)
129 return NULL;
130
131 if (p->top > 0 ){
132 return (void*)p->ele[--p->top];
133 }
134 else
135 return NULL;
136}
137
138//id: the id of element to be freed.
139//return code: -1: faile; >=0:OK.

Callers 1

ff_mem_get_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected