From ae055f1fc993d406939f57f11553d218e1efde82 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 13 Apr 2024 09:24:47 +0200 Subject: Simplified moves and trans --- utils/h48_to_lst.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 utils/h48_to_lst.c (limited to 'utils/h48_to_lst.c') diff --git a/utils/h48_to_lst.c b/utils/h48_to_lst.c new file mode 100644 index 0000000..21615d5 --- /dev/null +++ b/utils/h48_to_lst.c @@ -0,0 +1,19 @@ +#include +#include +#include + +#include "../cube.h" + +#define STRLENMAX 1000 + +int main(void) { + char str[STRLENMAX]; + cube_t cube; + + fgets(str, STRLENMAX, stdin); + cube = readcube("H48", str); + writecube("LST", cube, str); + fputs(str, stdout); + + return 0; +} -- cgit v1.3