Skip to content
Snippets Groups Projects
Commit 703f99c6 authored by leon's avatar leon
Browse files

example source of dxl_monitor - c and cpp ver modified #50

parent 831a060c
No related branches found
No related tags found
No related merge requests found
......@@ -114,9 +114,9 @@ int kbhit(void)
void usage(char *progname)
{
printf("-----------------------------------------------------------------------\n");
printf("Usage: %s\n");
printf("Usage: %s\n", progname);
printf(" [-h | --help]........: display this help\n");
printf("[-d | --device]......: port to open\n", progname);
printf(" [-d | --device]......: port to open\n");
printf("-----------------------------------------------------------------------\n");
}
......
......@@ -112,10 +112,9 @@ int kbhit(void)
void usage(char *progname)
{
printf("-----------------------------------------------------------------------\n");
printf("usage: %s\n" \
" [-h | --help]........: display this help\n" \
" [-d | --device]......: port to open \n" \
, progname);
printf("Usage: %s\n", progname);
printf(" [-h | --help]........: display this help\n");
printf(" [-d | --device]......: port to open\n");
printf("-----------------------------------------------------------------------\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment