mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-08 14:02:03 +00:00
19 lines
319 B
C
19 lines
319 B
C
/*
|
|
# Command line arguments
|
|
|
|
Try running this as:
|
|
|
|
./command_line_arguments asdf qwer zxcv
|
|
*/
|
|
|
|
#include "common.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 EXIT_SUCCESS;
|
|
}
|