invert.c (305B)
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(void) { 10 char str[STRLENMAX]; 11 cube_t cube; 12 13 fgets(str, STRLENMAX, stdin); 14 cube = cube_read("H48", str); 15 cube_write("H48", cube_inverse(cube), str); 16 fputs(str, stdout); 17 18 return 0; 19 }