MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / get_stack

Function get_stack

contents/flood_fill/code/c/flood_fill.c:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48struct stack get_stack() {
49 struct stack stk;
50
51 stk.data = malloc(4 * sizeof(struct point));
52 stk.capacity = 4;
53 stk.top = 0;
54
55 return stk;
56}
57
58int stack_empty(struct stack stk) {
59 return stk.top == 0;

Callers 1

stack_fillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected