From: kevin lyda (kevin at domain suberic.net)
Date: Thu 02 Aug 2001 - 11:43:51 IST
On Thu, Aug 02, 2001 at 10:45:23AM +0100, Stephen Shirley wrote:
> On Thu, 2 Aug 2001, John P. Looney wrote:
> > No offense Conor, but I strongly recommend you stick to Perl, Shell, TCL
> > or Java! Something that'll do your garbage collection for you.
> *Ouch*. Ok granted it was a rather fundamental c question, but everyone
> has to learn somehow - I believe any c programmer would have asked this
> question at some point.
actually on libc routines that return anything more complex then an
integer i wish the man page would have a section marked MALLOC or LEAK
PREVENTION saying who is responsible for freeing it. like getpwnam -
who free's that structure? is it a static in the function, or is it
put on the heap and the user's responibility to free?
-- kevin at domain suberic.net simple four line sigs - fork()'ed on 37058400 bandwidth friendly; nice to do. meatspace place: home some admins clueless. http://suberic.net/~kevin --netiquette haiku 2001
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:26 GMT