summaryrefslogtreecommitdiff
path: root/firmware/test/snprintf
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/test/snprintf')
-rw-r--r--firmware/test/snprintf/Makefile16
-rw-r--r--firmware/test/snprintf/test.c16
2 files changed, 0 insertions, 32 deletions
diff --git a/firmware/test/snprintf/Makefile b/firmware/test/snprintf/Makefile
deleted file mode 100644
index 39f128ed8a..0000000000
--- a/firmware/test/snprintf/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
1
2TARGET = snprintf
3
4OBJS = snprintf.o test.o
5
6CFLAGS = -I../../include
7
8$(TARGET): $(OBJS)
9
10snprintf.o: ../../common/sprintf.c
11 $(CC) -c $< -o $@
12
13test.o: test.c
14
15clean:
16 rm -f $(OBJS) \ No newline at end of file
diff --git a/firmware/test/snprintf/test.c b/firmware/test/snprintf/test.c
deleted file mode 100644
index 049be4d257..0000000000
--- a/firmware/test/snprintf/test.c
+++ /dev/null
@@ -1,16 +0,0 @@
1
2#include <stdio.h>
3
4
5int main(int argc, char **argv)
6{
7 char buffer[256];
8 snprintf(buffer, 5, "123456789");
9 printf("%s\n", buffer);
10 snprintf(buffer, 6, "123456789");
11 printf("%s\n", buffer);
12 snprintf(buffer, 7, "123456789");
13 printf("%s\n", buffer);
14 snprintf(buffer, 7, "123%s", "mooooooooooo");
15 printf("%s\n", buffer);
16}