Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Usage for mytime.
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Dec 19, 2014
1 parent 3b71874 commit c3ce612
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mytime/mytime.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ main (int argc, char *argv [])
double diff;
int timeout;

if (argc <= 3) {
fprintf (stderr, "Usage: mytime TIME-FILE TIMEOUT PROGRAM [ARG ...]\n");
exit (1);
}

assert (argc > 3);

timeout = atoi (argv [2]);
Expand Down

0 comments on commit c3ce612

Please sign in to comment.