Mercurial > hg > nginx-quic
comparison src/core/ngx_string.c @ 2135:8c6521eedf84
ngx_strlow()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 10:07:00 +0000 |
parents | 8e4b9d2acde8 |
children | 0433bc27e468 |
comparison
equal
deleted
inserted
replaced
2134:13652cba8633 | 2135:8c6521eedf84 |
---|---|
4 */ | 4 */ |
5 | 5 |
6 | 6 |
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 | |
10 | |
11 void | |
12 ngx_strlow(u_char *dst, u_char *src, size_t n) | |
13 { | |
14 while (n--) { | |
15 *dst = ngx_tolower(*src); | |
16 dst++; | |
17 src++; | |
18 } | |
19 } | |
9 | 20 |
10 | 21 |
11 u_char * | 22 u_char * |
12 ngx_cpystrn(u_char *dst, u_char *src, size_t n) | 23 ngx_cpystrn(u_char *dst, u_char *src, size_t n) |
13 { | 24 { |