Sender: vheyndri AT rug DOT ac DOT be Message-Id: <34618571.3CF2@rug.ac.be> Date: Thu, 06 Nov 1997 09:53:05 +0100 From: Vik Heyndrickx Mime-Version: 1.0 To: Molnar Laszlo Cc: DJGPP workers Subject: Re: 971009 djsplit & djmerge References: <345A093E DOT D893053 AT cdata DOT tvnet DOT hu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 / \ /-_-_-_-_-_-_/