[cs631apue] HW2 - get/setprogname

Jan Schaumann jschauma at stevens.edu
Fri Sep 23 10:13:52 EDT 2011


Rob Hoffmann <rhoffman at stevens.edu> wrote:

> Interestingly, typing "man setprogname" or "man getprogname" does not  
> bring up any man page on the Linux lab machines. Do these functions even  
> exist in stdlib.h in that environment?

Linux does not provide these calls; you can choose to not use these and
hardcode the name of the program or to implement a "getprogname"
function.

-Jan


More information about the cs631apue mailing list