This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 0ef494b681
commit aea97698c3
48 changed files with 840 additions and 798 deletions

View File

@@ -13,5 +13,5 @@ int main(int argc, char **argv) {
} else {
ret = strtoull(argv[1], NULL, 0);
}
return ret;
return ret;
}

View File

@@ -4,6 +4,6 @@
#include <stdlib.h>
int main(void) {
puts("hello");
return EXIT_SUCCESS;
puts("hello");
return EXIT_SUCCESS;
}

14
userland/c/print_argv.c Normal file
View File

@@ -0,0 +1,14 @@
/* Print each command line argument received, one per line.
*
* Good sanity check for user mode:
* https://github.com/cirosantilli/linux-kernel-module-cheat#qemu-user-mode-getting-started
*/
#include <stdio.h>
int main(int argc, char **argv) {
size_t i;
for (i = 0; i < (size_t)argc; ++i)
printf("%s\n", argv[i]);
return 0;
}