In of the codes, I observed this line of code extern const char* __progname; But could not where it is declared and defined. It has the program’s name as the value. How is this implemented? Thanks.

It is a compilator spesific implementation feature. It defines for you such variable with external linkage and places in it the name of the program. You should read the documentation supplied with your compiler.

??? 27 ??? 2012 01:50:34 ?? “rameshkumar” email@removed:

Question from rameshkumar?on Nov 27 at 1:45 AM
In of the codes, I observed this line of code
extern const char* __progname;

But could not where it is declared and defined. It has the program’s name as the value. How is this implemented?

Thanks.

? Reply to this email to post your response.