From 4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Oct 2023 22:46:52 +0200 Subject: Added transformations (and fixed tests) --- utils/h48_to_src.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/h48_to_src.c (limited to 'utils/h48_to_src.c') diff --git a/utils/h48_to_src.c b/utils/h48_to_src.c new file mode 100644 index 0000000..b79e94b --- /dev/null +++ b/utils/h48_to_src.c @@ -0,0 +1,20 @@ +#include +#include +#include + +#include "../src/cube.h" + +#define STRLENMAX 1000 + +int main() { + char str[STRLENMAX]; + cube_t cube; + + fgets(str, STRLENMAX, stdin); + cube = readcube(H48, str); + writecube(SRC, cube, str); + fputs(str, stdout); + /* putc('\n', stdout); */ + + return 0; +} -- cgit v1.3