Added userland/testbin
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <err.h>
|
||||
#include <test161/test161.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
@@ -52,6 +53,8 @@ main(int argc, char *argv[])
|
||||
j = atoi(argv[2]);
|
||||
|
||||
tprintf("Answer: %d\n", i+j);
|
||||
|
||||
char buf[16];
|
||||
snprintf(buf, 16, "%d", i+j);
|
||||
secprintf(SECRET, buf, "/testbin/add");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user