PLplot 5.15.0
Loading...
Searching...
No Matches
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
21typedef struct
22{
23 int n;
25 int * v;
26} istack;
27
28int istack_contains( istack* s, int v );
29istack* istack_create( void );
30void istack_destroy( istack* s );
31void istack_push( istack* s, int v );
32int istack_pop( istack* s );
33void istack_reset( istack* s );
34
35#endif
struct istack istack
Definition delaunay.h:42
void istack_push(istack *s, int v)
Definition istack.c:55
istack * istack_create(void)
Definition istack.c:32
void istack_reset(istack *s)
Definition istack.c:40
int istack_contains(istack *s, int v)
Definition istack.c:45
int istack_pop(istack *s)
Definition istack.c:67
void istack_destroy(istack *s)
Definition istack.c:73
int nallocated
Definition istack.h:24
int * v
Definition istack.h:25
int n
Definition istack.h:23