netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stack.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "internal/stack.h"
Include dependency graph for stack.c:

Data Structures

struct  stack
 

Functions

struct stackstack_create (size_t elem_size, int max_elems)
 
void stack_destroy (struct stack *s)
 
int stack_push (struct stack *s, void *data)
 
int stack_pop (struct stack *s, void *data)
 

Function Documentation

struct stack* stack_create ( size_t  elem_size,
int  max_elems 
)
void stack_destroy ( struct stack s)

References stack::data.

int stack_pop ( struct stack s,
void *  data 
)
int stack_push ( struct stack s,
void *  data 
)