All pastes #469833 Raw Edit

Miscellany

public c v1 · immutable
·published 2007-05-03 22:51 UTC
rendered paste body
  int ch;  char *ifwanted;  char *sleeplen;      while ((ch = getopt(argc, argv, "i:t:")) != -1) {  	switch (ch) {	  	case 'i':	  		ifwanted = optarg;	  		printf("You want '%s'\n", optarg);	  		break;	  	case 't':	  		sleeplen = optarg;	  		printf("You want '%s'\n", optarg);	  		break;	  	case '?':	  	default:	  		break;  	}	argc -= optind;	argv += optind;  }