diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2020-06-21 23:01:57 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2020-06-21 23:01:57 +0200 |
| commit | 0e8d73bb3edcc8bdff6e3ded442b66f68265059a (patch) | |
| tree | 4f92deb9ace97e79332c0e7ce390b76b81aeaae9 /src/io.h | |
| parent | 4e359b44ce111b04cc4d2b28033fba4ab4e6e989 (diff) | |
| download | nissy-0e8d73bb3edcc8bdff6e3ded442b66f68265059a.tar.gz nissy-0e8d73bb3edcc8bdff6e3ded442b66f68265059a.zip | |
First push
Diffstat (limited to 'src/io.h')
| -rw-r--r-- | src/io.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/io.h b/src/io.h new file mode 100644 index 0000000..f1b585d --- /dev/null +++ b/src/io.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include <stdint.h> | ||
| 2 | |||
| 3 | char *edge_string(int edge); | ||
| 4 | char *corner_string(int edge); | ||
| 5 | char *move_string(int move); | ||
| 6 | |||
| 7 | void print_cube_scram(int *scram); | ||
| 8 | |||
| 9 | void copy_moves(int *src, int *dst); | ||
| 10 | void append_moves(int *src, int *dst); | ||
| 11 | |||
| 12 | int read_moves(char *str, int *a); | ||
| 13 | int read_moves_from_prompt(int *a); | ||
| 14 | int read_moves_from_tok(int n, char tok[][100], int *a); | ||
| 15 | |||
| 16 | int uses_niss(int *str); | ||
| 17 | int unniss(int *src, int *dst); | ||
| 18 | int invert(int *src, int *dst); | ||
| 19 | int len(int *scram); | ||
| 20 | |||
| 21 | void print_moves(int move_list[]); | ||
