1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)fdate_.c 5.2 (Berkeley) 04/12/91"; 10 #endif /* not lint */ 11 12 /* 13 * Return date and time in an ASCII string. 14 * 15 * calling sequence: 16 * character*24 string 17 * call fdate(string) 18 * where: 19 * the 24 character string will be filled with the date & time in 20 * ascii form as described under ctime(3). 21 * No 'newline' or NULL will be included. 22 */ 23 24 fdate_(s, strlen) 25 char *s; long strlen; 26 { 27 char *ctime(), *c; 28 long time(), t; 29 30 t = time(0); 31 c = ctime(&t); 32 c[24] = '\0'; 33 b_char(c, s, strlen); 34 } 35