From 325112e50b56151b5e6daaa22c64a692d239697d Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 24 Oct 2017 19:00:45 -0400 Subject: [PATCH] Temporary file --- test.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test.c diff --git a/test.c b/test.c new file mode 100644 index 00000000..4c97178b --- /dev/null +++ b/test.c @@ -0,0 +1,20 @@ +// A temporary test file +#include +#include +#include +#include + +void main(){ + char c[128]; + uint32_t val = 0x32363435; + uint8_t *ptr = (uint8_t *)&val; + int i, j = 0; + //memset(c, 0x34, 128); + for (i = 0; i < 127; i++) { + c[i] = ptr[j++]; + if (j == 4) j = 0; + } + c[127] = '\0'; + printf("%s\n", c); + return; +}