Added userland/testbin

This commit is contained in:
Guru Prasad Srinivasa
2016-02-29 20:10:59 -05:00
parent a5963a0e31
commit d466eb7102
53 changed files with 1538 additions and 460 deletions

View File

@@ -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;
}