Gak! The "should" was hedged with quotes because I couldn't verify
how it behaved. Apparently it's just a quick way to access argv[0].
Thanks!
On 30 May 2006 16:29:31 +0200, Artur Grabowski <[EMAIL PROTECTED]> wrote:
"Peter Blair" <[EMAIL PROTECTED]> writes:
> Be careful -- if you have an ap
Be careful -- if you have an application "say /usr/local/whatever/foo"
that is linked from "/usr/local/bin/bar" then when you call
"/usr/local/bin/bar" it will populate "bar" as the argv[0] element.
This may be what you want, but then again, perhaps you want to know
that "foo" is the application b
On Fri, May 26, 2006 at 08:47:15PM +0100, Nick Guenther wrote:
> least, it should be) in usage() because the proper form is
> fprintf(stderr, "usage: %s [-ks]\n", __progname); where __progname
> gets filled in automatically with the name of the program. I don't
> know the details of how it works th
On 5/26/06, Will H. Backman <[EMAIL PROTECTED]> wrote:
Looking at /bin/head source code.
The usage function uses:
fputs("usage: head [-n line_count] [file ...]\n", stderr);
While many other programs use:
fprintf(stderr, "usage: arch [-ks]\n");
Is there a difference? Is one preferred?
Yes,
4 matches
Mail list logo