| 93 | } |
| 94 | |
| 95 | void usage(void) |
| 96 | { |
| 97 | printf("%s version %s by Jani Tolonen\n\n", progname, VER); |
| 98 | printf("usage: %s [options] #pid #time\n\n", progname); |
| 99 | printf("Description: Waits for a program, which program id is #pid, to\n"); |
| 100 | printf("terminate within #time seconds. If the program terminates within\n"); |
| 101 | printf("this time, or if the #pid no longer exists, value 0 is returned.\n"); |
| 102 | printf("Otherwise 1 is returned. Both #pid and #time must be positive\n"); |
| 103 | printf("integer arguments.\n\n"); |
| 104 | printf("Options:\n"); |
| 105 | my_print_help(my_long_options); |
| 106 | exit(-1); |
| 107 | } |
no test coverage detected