Re: So you think you are (or wanna be) a hacker
On Thu, Aug 12, 2004 at 10:59:36AM +0800, John Summerfield wrote:
> I found this interesting article:
> http://www.osnews.com/story.php?news_id=7990
>
> As I have a pretty clear view of my limitations as a C coder I thought
> I'd take a look.
>
> See how you score on the examples here:
> http://www.nostarch.com/frameset.php?startat=hownotc
>
> 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.
Reply to: