]> git.kaiwu.me - nginx.git/commitdiff
add comment
authorIgor Sysoev <igor@sysoev.ru>
Mon, 1 Oct 2007 13:00:30 +0000 (13:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 1 Oct 2007 13:00:30 +0000 (13:00 +0000)
src/core/ngx_string.c

index 6b40d0f9100a2e51c0210e05f3dc22fb193da6b6..45079b70691966806bf0884b33848847fc39beac 100644 (file)
@@ -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)
 {