patch to newctime.3 (relative to tzcode95b)
J.T. Conklin
jtc at cygnus.com
Fri Mar 10 00:18:54 UTC 1995
The enclosed patch adds some const qualifiers to function arguments,
and changes long's to time_t's as appropriate.
--jtc
diff -c -r1.3 -r1.4
*** newctime.3 1995/03/10 00:05:54 1.3
--- newctime.3 1995/03/10 00:09:36 1.4
***************
*** 11,17 ****
.B #include <sys/types.h>
.PP
.B char *ctime(clock)
! .B time_t *clock;
.PP
.B double difftime(time1, time0)
.B time_t time1;
--- 11,17 ----
.B #include <sys/types.h>
.PP
.B char *ctime(clock)
! .B const time_t *clock;
.PP
.B double difftime(time1, time0)
.B time_t time1;
***************
*** 20,32 ****
.B #include <time.h>
.PP
.B char *asctime(tm)
! .B struct tm *tm;
.PP
.B struct tm *localtime(clock)
! .B long *clock;
.PP
.B struct tm *gmtime(clock)
! .B long *clock;
.PP
.B time_t mktime(tm)
.B struct tm *tm;
--- 20,32 ----
.B #include <time.h>
.PP
.B char *asctime(tm)
! .B const struct tm *tm;
.PP
.B struct tm *localtime(clock)
! .B const time_t *clock;
.PP
.B struct tm *gmtime(clock)
! .B const time_t *clock;
.PP
.B time_t mktime(tm)
.B struct tm *tm;
More information about the tz
mailing list