usleep.c

I wrote a simple userspace program you might find useful for shell scripts, etc.. Put the following in /usr/local/bin or the like:
#include ‹stdio.h›
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==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);
}