diff options
| author | Dominik Kaiser | 2024-04-15 21:56:02 +0200 |
|---|---|---|
| committer | GitHub | 2024-04-15 21:56:02 +0200 |
| commit | 05e786db0ae74da69012e1b5aa2dc9169e56723b (patch) | |
| tree | 4b812065facb59bd774d9b88a5ea2550b0f28ebd /command_handling.c | |
| parent | edede8f8fd0ef6a51271bd7c12a784d9acbad7a8 (diff) | |
| parent | db6feb2e65edd411f02d50b2717850b97c85a675 (diff) | |
| download | push_swap-05e786db0ae74da69012e1b5aa2dc9169e56723b.tar.gz push_swap-05e786db0ae74da69012e1b5aa2dc9169e56723b.zip | |
Merge pull request #1 from dpu-kaiser/rotating_arrays
Rotating arrays
Diffstat (limited to 'command_handling.c')
| -rw-r--r-- | command_handling.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/command_handling.c b/command_handling.c index b1fe85a..e4dc476 100644 --- a/command_handling.c +++ b/command_handling.c @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/13 14:38:47 by dkaiser #+# #+# */ -/* Updated: 2024/04/13 14:47:55 by dkaiser ### ########.fr */ +/* Updated: 2024/04/15 16:35:05 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,14 +31,14 @@ static int add_cmd_to_queue(t_list **cmds, enum e_pscmd cmd) return (0); } -static void run_for_both(t_list **stack_a, t_list **stack_b, - void (*f)(t_list **)) +static void run_for_both(t_stack *stack_a, t_stack *stack_b, + void (*f)(t_stack *)) { f(stack_a); f(stack_b); } -void run_command(t_list **stack_a, t_list **stack_b, t_list **cmds, +void run_command(t_stack *stack_a, t_stack *stack_b, t_list **cmds, enum e_pscmd cmd) { if (cmd == SA) |
