Skip to content

Instantly share code, notes, and snippets.

@natemcmaster
Created September 1, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natemcmaster/741d067b2172fb3b22a2fada7b5b93a2 to your computer and use it in GitHub Desktop.
Save natemcmaster/741d067b2172fb3b22a2fada7b5b93a2 to your computer and use it in GitHub Desktop.
Echo command line args

Compile in Developer Command Prompt for VS 2015

PS> cl echo.c 
#include <stdio.h>
int main(int argc, char** argv) {
for(int i = 0; i < argc; i++) {
printf("%d = %s\n", i, argv[i]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment