MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / stack_pop

Function stack_pop

stack/stack.h:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107
108static inline void* stack_pop(Stack* stk) {
109 if (!stk || !stk->vec || stk->vec->size == 0) {
110 return NULL;
111 }
112 stk->vec->size--;
113 return (char*)stk->vec->items + stk->vec->size * stk->vec->itemSize;
114}
115
116
117/* ------------------------------------------------------------------ */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected