aboutsummaryrefslogtreecommitdiff
path: root/utils/invert.c
blob: 9121a470cc75468107e46df02a6e000b33f14eae (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 "../src/cube.h"

#define STRLENMAX 1000

int main(void) {
	char str[STRLENMAX], cube[22], inv[22];

	fgets(str, STRLENMAX, stdin);
	nissy_readcube("H48", str, cube);
	nissy_inverse(cube, inv);
	nissy_writecube("H48", inv, str);
	fputs(str, stdout);

	return 0;
}

Generated with cgit - Back to sebastiano.tronto.net