-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.h
More file actions
executable file
·33 lines (28 loc) · 1.33 KB
/
stack.h
File metadata and controls
executable file
·33 lines (28 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* stack.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: passef <passef@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/11 21:59:46 by passef #+# #+# */
/* Updated: 2018/01/11 21:59:46 by passef ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STACK_H
# define STACK_H
#include "bistromatic.h"
typedef struct s_stackToken
{
char *c;
struct s_stackToken *next;
} s_stackToken, *stack;
stack new_stack(void);
int is_empty_stack(stack st);
void print_stack(stack st);
stack push_stack(t_env *e, stack st, char *c);
stack pop_stack(stack st);
int top_stack(stack st);
int stack_length(stack st);
stack clear_stack(stack st);
#endif