delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/06/03:54:44

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 <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: Molnar Laszlo <molnarl AT cdata DOT tvnet DOT hu>
Cc: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: 971009 djsplit & djmerge
References: <345A093E DOT D893053 AT cdata DOT tvnet DOT hu>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019