Skip to content

Instantly share code, notes, and snippets.

@marcoscastro
Created December 25, 2013 22:49
Show Gist options
  • Save marcoscastro/8127689 to your computer and use it in GitHub Desktop.
Save marcoscastro/8127689 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char *argv[])
{
if(argc > 1)
{
printf("Argumentos passados:\n");
int i;
for(i = 1; i < argc; i++)
printf("%s\n", argv[i]);
}
else
printf("Nao passou argumentos!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment