Skip to content

Instantly share code, notes, and snippets.

@jarhill0
Created February 18, 2019 00:31
Show Gist options
  • Save jarhill0/4c6fdb44cf19f2018acf5e522ab0f6da to your computer and use it in GitHub Desktop.
Save jarhill0/4c6fdb44cf19f2018acf5e522ab0f6da to your computer and use it in GitHub Desktop.
C code sample for printing all argument variables
#include <stdio.h>
int main(int argc, char* argv[]) {
for (int i = 0; i < argc; i++)
printf("%s\n", argv[i]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment