Mail Archives: djgpp-workers/1997/11/06/03:54:44
Molnar Laszlo wrote:
>
> --- djmerge.c~ Wed Jul 12 22:04:32 1995
> +++ djmerge.c Thu Oct 30 23:05:50 1997
[part of patch that follows]
> - fprintf(stderr,"Usage: merge [inputBase] [outputFile]\n");
> + fprintf(stderr,"Usage: djmerge [inputBase] [outputFile]\n");
I haven't had a look at the sources, so basically I am not sure where I
am precisely talking about, but many programs use the argv[0] parameter
to main as program name. This method is then fail safe for whatever
filename you give to the program.
fprintf(stderr,"Usage: %s [inputBase] [outputFile]\n", argv[0]);
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -