If you rewrite the german comments you can use the stack I have written in school last year: stack_t.h (Template), stack_c.h (Class for ints), stack_f.h (Functions for C).