diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-14 17:35:35 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-14 17:35:35 +0100 |
| commit | 535ce22f99694460f32030db9655206a9341c6da (patch) | |
| tree | 16be12141aec0e3a3f04dd5c551677fdb4cfa949 /src/common/action.h | |
| parent | aedf0ac9594678da00218f924dd8468a481c7cc3 (diff) | |
| download | push_swap-535ce22f99694460f32030db9655206a9341c6da.tar.gz push_swap-535ce22f99694460f32030db9655206a9341c6da.tar.bz2 push_swap-535ce22f99694460f32030db9655206a9341c6da.zip | |
basic stack functions
Diffstat (limited to 'src/common/action.h')
| -rw-r--r-- | src/common/action.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/common/action.h b/src/common/action.h new file mode 100644 index 0000000..d458c49 --- /dev/null +++ b/src/common/action.h @@ -0,0 +1,19 @@ +#ifndef ACTION_H +# define ACTION_H + +# include "stack.h" + +void swap_a(t_stack *a); +void swap_b(t_stack *b); +void swap_both(t_stack *a, t_stack *b); +void push_a(t_stack *a, t_stack *b); +void push_b(t_stack *b, t_stack *a); +void rotate_a(t_stack *a); +void rotate_b(t_stack *b); +void rotate_both(t_stack *a, t_stack *b); +void reverse_rotate_a(t_stack *a); +void reverse_rotate_b(t_stack *b); +void reverse_rotate_both(t_stack *a, t_stack *b); + + +#endif |
