Mercurial > hg > nginx-quic
view src/os/unix/ngx_errno.c @ 210:00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 14 Dec 2003 20:10:27 +0000 |
parents | |
children | fd9fecc4193f |
line wrap: on
line source
#include <ngx_config.h> #include <ngx_core.h> ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size) { size_t len; if (size == 0) { return 0; } errstr[0] = '\0'; strerror_r(err, errstr, size); for (len = 0; len < size; len++) { if (errstr[len] == '\0') { break; } } return len; }