stack.h File Reference

Go to the source code of this file.

Data Structures

struct  stack_st

Defines

#define M_sk_num(sk)   ((sk) ? (sk)->num:-1)
#define M_sk_value(sk, n)   ((sk) ? (sk)->data[n] : NULL)

Typedefs

typedef struct stack_st STACK

Functions

int sk_num (const STACK *)
char * sk_value (const STACK *, int)
char * sk_set (STACK *, int, char *)
STACKsk_new (int(*cmp)(const char *const *, const char *const *))
STACKsk_new_null (void)
void sk_free (STACK *)
void sk_pop_free (STACK *st, void(*func)(void *))
int sk_insert (STACK *sk, char *data, int where)
char * sk_delete (STACK *st, int loc)
char * sk_delete_ptr (STACK *st, char *p)
int sk_find (STACK *st, char *data)
int sk_find_ex (STACK *st, char *data)
int sk_push (STACK *st, char *data)
int sk_unshift (STACK *st, char *data)
char * sk_shift (STACK *st)
char * sk_pop (STACK *st)
void sk_zero (STACK *st)
int(*)(const char *const
*, const char *const *) 
sk_set_cmp_func (STACK *sk, int(*c)(const char *const *, const char *const *))
STACKsk_dup (STACK *st)
void sk_sort (STACK *st)
int sk_is_sorted (const STACK *st)


Define Documentation

#define M_sk_num ( sk   )     ((sk) ? (sk)->num:-1)

Definition at line 76 of file stack.h.

#define M_sk_value ( sk,
 )     ((sk) ? (sk)->data[n] : NULL)

Definition at line 77 of file stack.h.


Typedef Documentation

typedef struct stack_st STACK


Function Documentation

char* sk_delete ( STACK st,
int  loc 
)

char* sk_delete_ptr ( STACK st,
char *  p 
)

STACK* sk_dup ( STACK st  ) 

int sk_find ( STACK st,
char *  data 
)

int sk_find_ex ( STACK st,
char *  data 
)

void sk_free ( STACK  ) 

int sk_insert ( STACK sk,
char *  data,
int  where 
)

int sk_is_sorted ( const STACK st  ) 

STACK* sk_new ( int(*)(const char *const *, const char *const *)  cmp  ) 

STACK* sk_new_null ( void   ) 

int sk_num ( const STACK  ) 

char* sk_pop ( STACK st  ) 

void sk_pop_free ( STACK st,
void(*)(void *)  func 
)

int sk_push ( STACK st,
char *  data 
)

char* sk_set ( STACK ,
int  ,
char *   
)

int(*)(const char * const *, const char * const *) sk_set_cmp_func ( STACK sk,
int(*)(const char *const *, const char *const *)  c 
)

char* sk_shift ( STACK st  ) 

void sk_sort ( STACK st  ) 

int sk_unshift ( STACK st,
char *  data 
)

char* sk_value ( const STACK ,
int   
)

void sk_zero ( STACK st  ) 


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6