1 /* 2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <time.h> 8 9 10 char * 11 ctime(const time_t *_timer) 12 { 13 return asctime(localtime(_timer)); 14 } 15 16 17 char * 18 ctime_r(const time_t *_timer, char *buf) 19 { 20 struct tm tm; 21 return asctime_r(localtime_r(_timer, &tm), buf); 22 } 23 24