1: /* 2: char id_ctime[] = "@(#)ctime_.c 1.1"; 3: * 4: * convert system time to ascii string 5: * 6: * calling sequence: 7: * character*24 string, ctime 8: * integer clock 9: * string = ctime (clock) 10: * where: 11: * string will receive the ascii equivalent of the integer clock time. 12: */ 13: 14: #include "../libI77/fiodefs.h" 15: #include <sys/types.h> 16: 17: char *ctime(); 18: 19: ctime_(str, len, clock) 20: char *str; ftnlen len; time_t *clock; 21: { 22: char *s = ctime(clock); 23: s[24] = '\0'; 24: b_char(s, str, len); 25: }