diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-22 22:46:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-22 22:46:52 +0200 |
| commit | 4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 (patch) | |
| tree | fa08602a6225d45d8d3fb69a258980a63c3383d4 /utils/h48_to_src.c | |
| parent | 97b3aa48a8d6ccdf2a3ce587bf8ac130c00c1b64 (diff) | |
| download | nissy-core-4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3.tar.gz nissy-core-4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3.zip | |
Added transformations (and fixed tests)
Diffstat (limited to '')
| -rw-r--r-- | utils/h48_to_src.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <inttypes.h> | ||
| 3 | #include <stdbool.h> | ||
| 4 | |||
| 5 | #include "../src/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(SRC, cube, str); | ||
| 16 | fputs(str, stdout); | ||
| 17 | /* putc('\n', stdout); */ | ||
| 18 | |||
| 19 | return 0; | ||
| 20 | } | ||
