bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using dirname module in C++


From: Bruno Haible
Subject: Re: using dirname module in C++
Date: Sat, 14 Aug 2010 12:27:49 +0200
User-agent: KMail/1.9.9

Paul Eggert wrote:
> One simple way to fix the problem is to define a global
> variable program_name and arrange for your
> main function to set it from argv[0].

Or import the module 'progname' from gnulib, and start the main()
function of your program with the statement
   set_program_name (argv[0]);

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]