aboutsummaryrefslogtreecommitdiffstats
path: root/man3/printf.3
AgeCommit message (Collapse)AuthorFilesLines
2005-07-06hyphen/dash fixes.Michael Kerrisk1-2/+2
2005-06-15Global edit: s/nonzero/non-zero/Michael Kerrisk1-2/+2
2004-12-14Hello Joey,Michael Kerrisk1-2/+9
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=205736 [[ This example contains the following line: if ((p = realloc (p, size)) == NULL) return NULL; This is a very ill written code, since realloc returning NULL do not deallocate the original memory block. Such a statement has a potential to become significant memory hole. I suggest to correct this example since: 1. It may trick naive programmers to write bad code 2. It may lead skeptic observers to the believe the whole Linux is written in a similar style. Regards Jan Kuznik ]] This guy is right on the money! I've changed that example, so that the above code has been replaced by: char *np; ... if ((np = realloc (p, size)) == NULL) { free(p); return NULL; } else { p = np; } Cheers, Michael
2004-11-03Import of man-pages 1.70man-pages-1.70Michael Kerrisk1-0/+931