[ I've cross-posted this to comp.unix.sco.programmer, and directed
followups there. ]
|I find that adding ANY number of days to now.tm_mday *works*, but if
|I subtract enough days from tm_mday to preceed the first of the month,
|the routine: (void) mktime(&now);
|just can't figure out the correct date.
|Is this a limitation on mktime, or perhaps on SCO's version of mktime?
It's not a limitation on mktime(). There is a bug in mktime() on
OpenServer Release 5 up to and including 5.0.4, I believe, that may
be causing the behaviour you are seeing. There is a fix for it,
TLS600, available from ftp.sco.com/TLS or their web site.
To reply by mail, please remove "mail." from my address