handle errors from localtime_r in ctime_r
POSIX requires ctime_r return a null pointer on failure, which can occur if the input time_t value is not representable in broken down form. based on patch by Alexander Monakov.
Showing
想要评论请 注册 或 登录