On 6/28/06, Iain Buchanan <[EMAIL PROTECTED]> wrote:
I don't want to use argv[0], because the particular place is deep within
classes, and there are too many (I'm doing some porting) to edit all of
their constructors, for example, to pass argv[0].

The normal way of handling this is with a global variable.  Just set
it in your main() function, and it can be accessed from any other code
in your program.

-Richard
--
gentoo-user@gentoo.org mailing list

Reply via email to