You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
312 B

  1. #include <stdlib.h>
  2. #define STACK_TYPE size_t
  3. #ifdef STACK_TYPE
  4. #define STACK_TAB_SIZE 10
  5. struct stack_cell_t {
  6. struct stack_cell_t* next;
  7. STACK_TYPE tab[STACK_TAB_SIZE];
  8. size_t sommet;
  9. };
  10. int stack_push(struct stack_cell_t** l, STACK_TYPE elt);
  11. STACK_TYPE* stack_pop(struct stack_cell_t** l);
  12. #endif