Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-04 14:07:00 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-08-04 14:07:00 +0400
commit777b019c7338b6a67f639bb86b90711055709c53 (patch)
tree9bac0517c1d4e6d1690d2738284c89b382eec38e /src/core/ngx_string.c
parenteb3e4c8be00d6353b5e545a75f9abda0b154585c (diff)
ngx_strlow()
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c11
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)
{