Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 156 Bytes
#include "Stack.h"
void StackPush(UINT8* stack, UINT8 elem) {
stack[++ stack[0]] = elem;
}
UINT8 StackPop(UINT8* stack) {
return stack[(stack[0] --)];
}