mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
nodejs: start sketch
This commit is contained in:
14
userland/c/command_line_arguments.c
Normal file
14
userland/c/command_line_arguments.c
Normal file
@@ -0,0 +1,14 @@
|
||||
/* Print each command line argument received, one per line.
|
||||
*
|
||||
* Good sanity check for user mode:
|
||||
* https://cirosantilli.com/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;
|
||||
}
|
||||
Reference in New Issue
Block a user