Safe coding practices (was Re: Bug in users command)
Rich Salz
rsalz at bbn.com
Tue Jan 29 09:03:45 AEST 1991
In <23975:Jan2516:36:5891 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>Some versions of realloc() return the original pointer rather than 0 if
>they run out of memory.
Than such versions are seriously broken, since returning the original pointer is
a valid thing to do if there already was enough space allocated.
I would not code for such systems.
--
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.
More information about the Comp.std.c
mailing list