PLplot: istack.h Source File

PLplot 5.10.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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;
24 int nallocated;
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