aboutsummaryrefslogtreecommitdiff
path: root/utils/invert.c
blob: aa912e550e273086d250c92caa65e15eb63de38c (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() {
	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