fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[])
  4. {
  5. int arg;
  6. for (arg = 0; arg < argc; ++arg)
  7. {
  8. printf("Arg %d is %s\n", arg, argv[arg]);
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 1720KB
stdin
Standard input is empty
stdout
Arg 0 is ./prog