put in OBJ in endif to match
[unix-history] / usr / src / usr.bin / pascal / libpc / DATE.c
CommitLineData
c66cc19d
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
3static char sccsid[] = "@(#)DATE.c 1.1 %G%";
4
5char _pd_date[] = {
6 8, 9, 10, 4, 5, 6, 10, 22, 23, 10, 0
7};
8
9extern char *ctime();
10
11DATE(alfap)
12
13 register char *alfap;
14{
15 register char *ap, *cp, *dp;
16 long a;
17
18 time(&a);
19 cp = ctime(&a);
20 ap = alfap;
21 for (dp = _pd_date; *dp; *ap++ = cp[*dp++]);
22}