move snprintf test suite to tests/snprintf/ and add test
[ust.git] / snprintf / prog.c
diff --git a/snprintf/prog.c b/snprintf/prog.c
deleted file mode 100644 (file)
index 157511b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-
-int main()
-{
-       char buf[100];
-
-       char *expected;
-
-       expected = "header 9999, hello, 003";
-       ust_safe_snprintf(buf, 99, "header %d, %s, %03d", 9999, "hello", 3);
-       if(strcmp(buf, expected) != 0) {
-               printf("Error: expected \"%s\" and got \"%s\"\n", expected, buf);
-               return 1;
-       }
-
-       return 0;
-}
This page took 0.022513 seconds and 4 git commands to generate.