aboutsummaryrefslogtreecommitdiff
path: root/utils/invert.c
blob: ff01beed42bfb50c4a0b03584a06365c77e55a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <inttypes.h>
#include <stdbool.h>

#include "../cube.h"

#define STRLENMAX 1000

int main(void) {
	char str[STRLENMAX];
	cube_t cube;

	fgets(str, STRLENMAX, stdin);
	cube = readcube("H48", str);
	writecube("H48", inverse(cube), str);
	fputs(str, stdout);

	return 0;
}

Generated with cgit - Back to sebastiano.tronto.net