diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-06-08 09:33:12 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-06-08 09:33:12 +0200 |
commit | c81c6223b7d9e5973f5d2825c399d5777e093c58 (patch) | |
tree | a7eceaf2e0b6525f6aeacaedb1b33e42582529e8 /zumo/strlutest | |
parent | 97939ee4eaad5937a0a2eee190b2b9028d009a97 (diff) | |
parent | 2903e61cbe2eeff3121f67da516ea195999f0bba (diff) |
merge dev into master
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]); + } +} |