On Thu, 2006-07-06 at 21:48 -0700, Richard Fish wrote: > On 7/6/06, Iain Buchanan <[EMAIL PROTECTED]> wrote: > > yes I would, except that I'm editing a class which is inherited by a > > multitude of programs, so the /proc way I only have to change one file, > > whereas the argv[0] way I have to change every source file... > > No, that's the point of a global. Inheritance and all doesn't matter. > > You change main.c (2 lines): > char* progname = 0;
but I don't have just one main.c, I have 20+ different apps, each with their own main.c, which I don't maintain, for which I'd have to issue updates. Not to mention educate the other programmers on including this ditty in each new app. the /proc way I can just update the class in the background, which is in cvs, and no one even knows the difference... but please keep responding with ideas :) -- Iain Buchanan <iaindb at netspace dot net dot au> When you go out to buy, don't show your silver. -- gentoo-user@gentoo.org mailing list