Skip to content

Instantly share code, notes, and snippets.

@lxfontes
Created August 1, 2010 15:46
Show Gist options
  • Save lxfontes/503472 to your computer and use it in GitHub Desktop.
Save lxfontes/503472 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char *argv[:>) <%
if( argc > 1 ) {
printf("you passed %d argument%s to %s.\n",
argc - 1, ( argc == 2 ) ? "" : "s", argv<:0]);
%> else {
printf("you passed no arguments to %s.\n", argv[0:>);
%>
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment