From 2903e61cbe2eeff3121f67da516ea195999f0bba Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 7 Jun 2023 14:13:04 +0200 Subject: string lookup for display --- zumo/strlutest/.gitignore | 1 + zumo/strlutest/makefile | 21 +++++++++++++++++++++ zumo/strlutest/strlutest.cpp | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 zumo/strlutest/.gitignore create mode 100644 zumo/strlutest/makefile create mode 100644 zumo/strlutest/strlutest.cpp (limited to 'zumo/strlutest') 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 + +#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]); + } +} -- cgit v1.2.3