9 void parse_opts(int argc
, char **argv
)
17 while ((opt
= getopt(argc
, argv
, "nt:")) != -1) {
27 fprintf(stderr
, "Usage: %s [-t nsecs] [-n] name\n",
33 printf("flags=%d; tfnd=%d; optind=%d\n", flags
, tfnd
, optind
);
36 fprintf(stderr
, "Expected argument after options\n");
40 printf("name argument = %s\n", argv
[optind
]);
42 /* Other code omitted */
48 int main(int argc
, char *argv
[])
50 pid_t pid
= atoi(argv
[1]);
54 send_message(pid
, msg
, NULL
);
This page took 0.031544 seconds and 4 git commands to generate.