1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Entrypoint and utility functions |
Entrypoint and utility functions |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2003 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
64 |
usage(char *program) |
usage(char *program) |
65 |
{ |
{ |
66 |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
67 |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2002 Matt Chapman.\n"); |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2003 Matt Chapman.\n"); |
68 |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
69 |
|
|
70 |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
444 |
|
|
445 |
va_start(ap, format); |
va_start(ap, format); |
446 |
vfprintf(stderr, format, ap); |
vfprintf(stderr, format, ap); |
447 |
|
va_end(ap); |
448 |
|
} |
449 |
|
|
450 |
|
/* report a warning */ |
451 |
|
void |
452 |
|
warning(char *format, ...) |
453 |
|
{ |
454 |
|
va_list ap; |
455 |
|
|
456 |
|
fprintf(stderr, "WARNING: "); |
457 |
|
|
458 |
|
va_start(ap, format); |
459 |
|
vfprintf(stderr, format, ap); |
460 |
va_end(ap); |
va_end(ap); |
461 |
} |
} |
462 |
|
|