William Ballard wrote:

So set the ball rolling, here is a snippet from a program I found via freshmeat the other day:
configfile = malloc(strlen(getenv("HOME")) + 20);
sprintf(configfile,"%s/%s",getenv("HOME"), cfgfile);



The length of HOME could increase between invocations. I don't fancy myself a very good C programmer, so I piped up.




Your answer qualified you to answer:-)


--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to