Files
linux-kernel-module-cheat/userland/c/command_line_arguments.c
Ciro Santilli 六四事件 法轮功 66473201eb dhrystone baremetal!!!
Factor out --optimization-level and --static to all builds

More conventionally set argv[0] to be the basename of the image.

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
2020-04-02 03:00:02 +00:00

13 lines
260 B
C

/* https://cirosantilli.com/linux-kernel-module-cheat#c */
#include <stdio.h>
int main(int argc, char **argv) {
int i;
printf("argc = %d\n", argc);
for (i = 0; i < argc; ++i) {
printf("argv[%d] = %s\n", i, argv[i]);
}
return 0;
}