On Sat, Jan 30, 2010 at 07:21:17PM -0600, Bill Seymour <stdbill.h@pobox.com> wrote:
This code follows the C standard, so this bug is a defect in the standard.
How so? It's not the job of the standard to specify coding practices. If a function can return a null pointer, programmers need to check for that.
Description [#2] The ctime function converts the calendar time pointed to by timer to local time in the form of a string. It is equivalent to asctime(localtime(timer))
Is it "a defect in the standard" that malloc() can return NULL?
Or do you mean something else that I'm missing?
Yes, you should probably read the standard first before commenting about it :) -- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / schmorp@schmorp.de -=====/_/_//_/\_,_/ /_/\_\