mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
15 lines
257 B
C
15 lines
257 B
C
/* taken from ldns 1.6.1 */
|
|
#include "config.h"
|
|
|
|
#ifdef HAVE_TIME_H
|
|
#include <time.h>
|
|
#endif
|
|
|
|
char *ctime_r(const time_t *timep, char *buf)
|
|
{
|
|
/* no thread safety. */
|
|
char* result = ctime(timep);
|
|
if(buf && result)
|
|
strcpy(buf, result);
|
|
return result;
|
|
}
|