Newsgroups: comp.lang.c Path: utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: Re: struct tm -> time_t converter wanted Message-ID: <8810281857.AA20674@champlain.dgp.toronto.edu> Keywords: C library, time Organization: University of Toronto References: <442@grand.UUCP> <8700@smoke.BRL.MIL> <6964@cdis-1.uucp> <8716@smoke.BRL.MIL> <12418@steinmetz.ge.com> Date: Fri, 28 Oct 88 14:57:12 EDT In article <12418@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >changing the epoch or going to 64 bits would break existing programs. How could going to 64 bits break an existing program? Only if it _depended_ on 2147483647 + 1 being -2147483648, as far as I can tell. This is, of course, assuming that longs have become 64 bits; time_t has to be typedefed as _something_. Or, of course, if it did stuff like "int *p = (int *)malloc(4)" instead of using sizeof(int)... But, show us a program which isn't broken already which will break when longs become 64 bits.