Mega Code Archive

 
Categories / C / Development
 

Process the command line input

#include <stdio.h> int main(int argc, char *argv[]) {   int t, i;   for(t=0; t<argc; ++t) {     i = 0;     while(argv[t][i]) {       putchar(argv[t][i]);       ++i;     }     printf("\n");   }   return 0; }