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 struct ustcomm_connection conn
;
56 ustcomm_connect_app(pid
, &conn
);
57 ustcomm_send_request(&conn
, msg
, NULL
);
This page took 0.162017 seconds and 5 git commands to generate.