diff options
Diffstat (limited to 'src/core/io_trans.h')
| -rw-r--r-- | src/core/io_trans.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/core/io_trans.h b/src/core/io_trans.h deleted file mode 100644 index 71b2287..0000000 --- a/src/core/io_trans.h +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | STATIC uint8_t readtrans(const char [static NISSY_SIZE_TRANSFORMATION]); | ||
| 2 | STATIC void writetrans(uint8_t, char [static NISSY_SIZE_TRANSFORMATION]); | ||
| 3 | |||
| 4 | STATIC uint8_t | ||
| 5 | readtrans(const char buf[static NISSY_SIZE_TRANSFORMATION]) | ||
| 6 | { | ||
| 7 | uint8_t t; | ||
| 8 | |||
| 9 | for (t = 0; t < NTRANS; t++) | ||
| 10 | if (!strncmp(buf, transstr[t], 11)) | ||
| 11 | return t; | ||
| 12 | |||
| 13 | return UINT8_ERROR; | ||
| 14 | } | ||
| 15 | |||
| 16 | STATIC void | ||
| 17 | writetrans(uint8_t t, char buf[static NISSY_SIZE_TRANSFORMATION]) | ||
| 18 | { | ||
| 19 | if (t >= 48) | ||
| 20 | memcpy(buf, "error trans", 11); | ||
| 21 | else | ||
| 22 | memcpy(buf, transstr[t], 11); | ||
| 23 | buf[11] = '\0'; | ||
| 24 | } | ||
