aboutsummaryrefslogtreecommitdiff
path: root/src/core/io_trans.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/io_trans.h')
-rw-r--r--src/core/io_trans.h24
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 @@
1STATIC uint8_t readtrans(const char [static NISSY_SIZE_TRANSFORMATION]);
2STATIC void writetrans(uint8_t, char [static NISSY_SIZE_TRANSFORMATION]);
3
4STATIC uint8_t
5readtrans(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
16STATIC void
17writetrans(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}

Generated with cgit - Back to sebastiano.tronto.net