[7154] in Athena Bugs
vax 7.2R: ctime manpage
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Wed Feb 20 10:34:41 1991
From: vanharen@ATHENA.MIT.EDU
Date: Wed, 20 Feb 91 10:34:29 -0500
To: bugs@ATHENA.MIT.EDU
System name: fries
Type and version: CVAXSTAR 7.2R
Display type: SM
What were you trying to do?
Use ctime.
What's wrong:
The man page seems to infer that <time.h> does not need to be
included in order to use ctime. It also does not mention
<sys/types.h>, which is where time_t is typedef'ed. The man
page currently looks like this:
SYNOPSIS
void tzset()
char *ctime(clock)
time_t *clock;
#include <time.h>
char *asctime(tm)
struct tm *tm;
What should have happened:
It should look more like this (IMHO):
SYNOPSIS
void tzset()
#include <time.h>
#include <sys/types.h>
char *ctime(clock)
time_t *clock;
char *asctime(tm)
struct tm *tm;
Please describe any relevant documentation references:
man 3 ctime