checking command line arguments


/ Published in: C
Save to your folder(s)

for checking the cmdargs


Copy this code and paste it in your HTML
  1. int main(int argc, char* argv[]) {
  2.  
  3. int i = 0;
  4. for(i=0; i<argc; i++) {
  5. printf("Your ARGC: %i, your ARGV[%i]: %s\n", argc, i, argv[i]);
  6. }
  7.  
  8. return 0;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.