/stack

A very basic integer stack in C.

Primary LanguageCGNU General Public License v3.0GPL-3.0

#stack

A very bland C implementation of a stack of integers.

Usage:

struct stack my_stack;
init_stack(&my_stack);
push(3, &my_stack);
printf("Let's pop the value now: %d\n", 
        pop(&my_stack));
free_stack_data(&my_stack);