The stack implementation is suitable for a single sheet of paper.
The simplest stack example
int stack[1000]; int *sp; #define push(sp, n) (*((sp)++) = (n)) #define pop(sp) (*--(sp)) ... { sp = stack; push(sp, 10); x = pop(sp); }
Vovanium
source share