Added userland/testbin
This commit is contained in:
1 parent
a5963a0e31
commit
d466eb7102
53 files changed
+1538
-460
No files matched your search
@@ -36,6 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <test161/test161.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
@@ -44,6 +45,9 @@ main(int argc, char *argv[])
|
||||
int i;
|
||||
|
||||
tprintf("argc: %d\n", argc);
|
||||
char buf[16];
|
||||
snprintf(buf, 16, "argc: %d", argc);
|
||||
secprintf(SECRET, buf, "/testbin/argtest");
|
||||
|
||||
for (i=0; i<=argc; i++) {
|
||||
tmp = argv[i];
|
||||
@@ -51,6 +55,7 @@ main(int argc, char *argv[])
|
||||
tmp = "[NULL]";
|
||||
}
|
||||
tprintf("argv[%d]: %s\n", i, tmp);
|
||||
secprintf(SECRET, tmp, "/testbin/argtest");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user