From de0352a2926b0708400a9629c1da813455a6f442 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 27 Feb 2022 12:11:07 +0100 Subject: Changed unniss() to return an Alg*. Addedd inplace() to run a function on an alg in place. --- src/commands.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/commands.c') diff --git a/src/commands.c b/src/commands.c index 13405b7..8666278 100644 --- a/src/commands.c +++ b/src/commands.c @@ -525,8 +525,11 @@ cleanup_exec(CommandArgs *args) static void unniss_exec(CommandArgs *args) { - unniss(args->scramble); - print_alg(args->scramble, false); + Alg *aux; + + aux = unniss(args->scramble); + print_alg(aux, false); + free(aux); } static void -- cgit v1.3