Graphviz  2.41.20170921.2350
Functions
IntStack.c File Reference
#include "general.h"
#include "IntStack.h"
Include dependency graph for IntStack.c:

Go to the source code of this file.

Functions

IntStack IntStack_new (void)
 
void IntStack_delete (IntStack s)
 
int IntStack_push (IntStack s, int i)
 
int IntStack_pop (IntStack s, int *flag)
 
void IntStack_print (IntStack s)
 

Function Documentation

void IntStack_delete ( IntStack  s)

Definition at line 28 of file IntStack.c.

References FREE, and IntStack_struct::stack.

Referenced by BinaryHeap_delete().

IntStack IntStack_new ( void  )

Definition at line 17 of file IntStack.c.

References IntStack_struct::last, MALLOC, IntStack_struct::max_len, and IntStack_struct::stack.

Referenced by BinaryHeap_new().

int IntStack_pop ( IntStack  s,
int flag 
)

Definition at line 53 of file IntStack.c.

References IntStack_struct::last, and IntStack_struct::stack.

Referenced by BinaryHeap_insert().

void IntStack_print ( IntStack  s)

Definition at line 62 of file IntStack.c.

References IntStack_struct::last, and IntStack_struct::stack.

int IntStack_push ( IntStack  s,
int  i 
)