/
githubmirror
/
file
Обзор
Документация
Войти
/
githubmirror
/
file
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/ctime_r.c
19 строк
402 B
Christos Zoulas
Revert previous
24 сен 2022, 23:30
24 сен 2022, 23:30
13818e8
Код
Авторство
О чём код?
/* $File: ctime_r.c,v 1.3 2022/09/24 20:30:13 christos Exp $ */ #include "file.h" #ifndef lint FILE_RCSID("@(#)$File: ctime_r.c,v 1.3 2022/09/24 20:30:13 christos Exp $") #endif /* lint */ #include <time.h> #include <string.h> /* ctime_r is not thread-safe anyway */ char * ctime_r(const time_t *t, char *dst) { char *p = ctime(t); if (p == NULL) return NULL; memcpy(dst, p, 26); return dst; }