Date: Thu, 26 Oct 1995 19:05:19 -0600 From: rkw@dataplex.net (Richard Wackerbarth) To: questions@freebsd.org Subject: Help -- Stupid "C" question. Message-ID: <v02130500acb5df16dbb7@[199.183.109.242]>
next in thread | raw e-mail | index | archive | help
OK, I know I am overlooking something simple, but I can't see it.
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
main () {
printf("It is now %s\n", ctime(time()));
};
I also tried
ctime(time((time_t*)0))
ctime(time(NULL))
and
ctime(1000000)
The last one gave an answer, the rest core dumped.
What should I use?
----
Richard Wackerbarth
rkw@dataplex.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v02130500acb5df16dbb7>
