about summary refs log tree commit diff
path: root/usth/ICT2.1/labwork/3/stack.h
blob: 2ed88511be474d67ef767e397a1685b3ca2d5bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Stack header.
 * This is free and unencumbered software released into the public domain.
 */

#include "construct.h"

typedef struct {
	construct *stack;
} stack;

stack *mkstack();
int stack_empty(stack *);
void stack_push(stack *, void *);
void *stack_top(stack *);
void *stack_pop(stack *);