diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 10:40:49 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 10:40:49 +0100 |
| commit | 13275a4bb8696e730a4fffdd05b8e1d046e489c6 (patch) | |
| tree | 4db3ed3ada41158c451188c98e74fdde5ea296b2 /utils/h48_to_lst.c | |
| parent | d6fdf14d5c320bdca455f910d58d652c5a7827da (diff) | |
| download | nissy-core-13275a4bb8696e730a4fffdd05b8e1d046e489c6.tar.gz nissy-core-13275a4bb8696e730a4fffdd05b8e1d046e489c6.zip | |
Simplified cube definition for move and transformations even more
Diffstat (limited to 'utils/h48_to_lst.c')
| -rw-r--r-- | utils/h48_to_lst.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/h48_to_lst.c b/utils/h48_to_lst.c new file mode 100644 index 0000000..debb7f4 --- /dev/null +++ b/utils/h48_to_lst.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <inttypes.h> | ||
| 3 | #include <stdbool.h> | ||
| 4 | |||
| 5 | #include "../cube.h" | ||
| 6 | |||
| 7 | #define STRLENMAX 1000 | ||
| 8 | |||
| 9 | int main() { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | cube_t cube; | ||
| 12 | |||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | cube = readcube("H48", str); | ||
| 15 | writecube("LST", cube, str); | ||
| 16 | fputs(str, stdout); | ||
| 17 | |||
| 18 | return 0; | ||
| 19 | } | ||
