aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-10-01 13:00:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-10-01 13:00:30 +0000
commit6669702b005516ab432a4fd288f20d8c7060d9c1 (patch)
treef2a24b12b40be8e735be370db4e455861d805a38 /src/core/ngx_string.c
parentf53294103b534d6979700158be18bdf17267f6d0 (diff)
downloadnginx-6669702b005516ab432a4fd288f20d8c7060d9c1.tar.gz
nginx-6669702b005516ab432a4fd288f20d8c7060d9c1.zip
add comment
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c
index 6b40d0f91..45079b706 100644
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -503,6 +503,12 @@ ngx_strncasecmp(u_char *s1, u_char *s2, size_t n)
}
+/*
+ * ngx_strstrn() and ngx_strcasestrn() are intended to search for static
+ * substring with known length in null-terminated string. The argument n
+ * must be length of the second substring - 1.
+ */
+
u_char *
ngx_strstrn(u_char *s1, char *s2, size_t n)
{