1: /* 2: char id_fdate[] = "@(#)fdate_.c 1.1"; 3: * 4: * Return date and time in an ASCII string. 5: * 6: * calling sequence: 7: * character*24 string 8: * call fdate(string) 9: * where: 10: * the 24 character string will be filled with the date & time in 11: * ascii form as described under ctime(3). 12: * No 'newline' or NULL will be included. 13: */ 14: 15: #include "../libI77/fiodefs.h" 16: #include <sys/types.h> 17: 18: fdate_(s, strlen) 19: char *s; ftnlen strlen; 20: { 21: char *ctime(), *c; 22: time_t time(), t; 23: 24: t = time((time_t) 0); 25: c = ctime(&t); 26: c[24] = '\0'; 27: b_char(c, s, strlen); 28: }