#include int main(argc, argv) int argc; char *argv[]; { int base; if(argc<2) { fprintf(stderr, "Use: %s usleep long_number_of_microseconds\n", argv[0]), exit(1); } // if (argc<3) base=10; // usleep(atol(argv[1])); // ascii to long doesn't have specifier for base // usleep(strtol(argv[1],(char **)NULL,10)); // if (argc==2) usleep(strtol(argv[1],(char **)NULL,10)); if (argc==2) usleep(strtol(argv[1],(char **)NULL,0)); if (argc==3) usleep(strtol(argv[1],(char **)NULL,strtol(argv[2],(char **)NULL, 0))); exit(0); }