PLplot  5.15.0
istack.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 //
3 // File: istack.h
4 //
5 // Created: 06/06/2001
6 //
7 // Author: Pavel Sakov
8 // CSIRO Marine Research
9 //
10 // Purpose: Header for handling stack of integers.
11 //
12 // Description: None
13 //
14 // Revisions: None
15 //
16 //--------------------------------------------------------------------------
17 
18 #if !defined ( _ISTACK_H )
19 #define _ISTACK_H
20 
21 typedef struct
22 {
23  int n;
25  int * v;
26 } istack;
27 
28 int istack_contains( istack* s, int v );
29 istack* istack_create( void );
30 void istack_destroy( istack* s );
31 void istack_push( istack* s, int v );
32 int istack_pop( istack* s );
33 void istack_reset( istack* s );
34 
35 #endif
int istack_pop(istack *s)
Definition: istack.c:67
int istack_contains(istack *s, int v)
Definition: istack.c:45
Definition: istack.h:21
void istack_reset(istack *s)
Definition: istack.c:40
void istack_destroy(istack *s)
Definition: istack.c:73
int nallocated
Definition: istack.h:24
int * v
Definition: istack.h:25
void istack_push(istack *s, int v)
Definition: istack.c:55
struct istack istack
Definition: delaunay.h:42
int n
Definition: istack.h:23
istack * istack_create(void)
Definition: istack.c:32