Posted By

tandouri on 08/21/09


Tagged

command line checking arguments cmd


Versions (?)

checking command line arguments


 / Published in: C
 

for checking the cmdargs

  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  

You need to login to post a comment.