diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 14:07:00 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 14:07:00 +0400 |
commit | 777b019c7338b6a67f639bb86b90711055709c53 (patch) | |
tree | 9bac0517c1d4e6d1690d2738284c89b382eec38e /src/core/ngx_string.c | |
parent | eb3e4c8be00d6353b5e545a75f9abda0b154585c (diff) |
ngx_strlow()
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 2da6c8319..203cd3e37 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -8,6 +8,17 @@ #include <ngx_core.h> +void +ngx_strlow(u_char *dst, u_char *src, size_t n) +{ + while (n--) { + *dst = ngx_tolower(*src); + dst++; + src++; + } +} + + u_char * ngx_cpystrn(u_char *dst, u_char *src, size_t n) { |