diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-06-07 14:13:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-06-07 14:13:04 +0200 |
commit | 2903e61cbe2eeff3121f67da516ea195999f0bba (patch) | |
tree | 66b639d73c6f35012732e4e8b9db508691aee28e /zumo/strlutest | |
parent | 74527f9b5a51eca49734a50a5b78e26e2d824776 (diff) |
string lookup for display
Diffstat (limited to 'zumo/strlutest')
-rw-r--r-- | zumo/strlutest/.gitignore | 1 | ||||
-rw-r--r-- | zumo/strlutest/makefile | 21 | ||||
-rw-r--r-- | zumo/strlutest/strlutest.cpp | 10 |
3 files changed, 32 insertions, 0 deletions
diff --git a/zumo/strlutest/.gitignore b/zumo/strlutest/.gitignore new file mode 100644 index 0000000..15010c5 --- /dev/null +++ b/zumo/strlutest/.gitignore @@ -0,0 +1 @@ +strlutest diff --git a/zumo/strlutest/makefile b/zumo/strlutest/makefile new file mode 100644 index 0000000..f05e0ba --- /dev/null +++ b/zumo/strlutest/makefile @@ -0,0 +1,21 @@ +CPP = g++ +LD = g++ +RM = rm -f +CFLAGS = +LFLAGS = +TARGET = strlutest + +SRCS := strlutest.cpp +OBJS := strlutest.o + +all: strlutest + +%.o: %.cpp + $(CPP) -c $(CFLAGS) $< -o $@ + +$(TARGET): $(OBJS) + $(LD) $^ $(LFLAGS) -o $@ + +clean: + $(RM) $(TARGET) $(OBJS) + diff --git a/zumo/strlutest/strlutest.cpp b/zumo/strlutest/strlutest.cpp new file mode 100644 index 0000000..72ec591 --- /dev/null +++ b/zumo/strlutest/strlutest.cpp @@ -0,0 +1,10 @@ +#include <cstdio> + +#include "../protocol.h" + +int main() { + for (unsigned int i = 0; i < 15; i++) { + if (DUI_SIGN_LOOKUP[i] == NULL) continue; + printf("%d: %s\n", i, DUI_SIGN_LOOKUP[i]); + } +} |