mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
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
13 lines
260 B
C
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;
|
|
}
|