core dump from within asctime_r()

Marc Lehmann schmorp at
Sun Jan 31 01:59:36 UTC 2010

On Sat, Jan 30, 2010 at 07:21:17PM -0600, Bill Seymour <stdbill.h at> 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.


       [#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


> 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_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the tz mailing list