Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

malloc free sizeof

Name: Anonymous 2012-01-13 9:51

How do I implement a simple mallow, free, and widely in ask x86?
How does free know how much to actually free?

Name: Anonymous 2012-01-13 11:31

>>6
That's non-conformant code.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/string.h.html
No it's not. Standard string.h defines NULL, so if NULL is not defined after string.h is included, the header itself is non-conformant and you can't trust any behavior from that compiler.

Newer Posts