aboutsummaryrefslogtreecommitdiff
path: root/src/core/io_trans.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-21 10:33:46 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-21 10:33:46 +0200
commit1d9b8acfeece68c4f55d2499d8aed127f98a383c (patch)
treed520e8726a0c37af5738779847c2da942a05cf64 /src/core/io_trans.h
parentf1575ed335166a0897f2cfd314a0f4bade6a10fc (diff)
downloadnissy-core-1d9b8acfeece68c4f55d2499d8aed127f98a383c.tar.gz
nissy-core-1d9b8acfeece68c4f55d2499d8aed127f98a383c.zip
Merged some files, renamed another
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