# HG changeset patch # User Igor Sysoev # Date 1191243630 0 # Node ID d0bdd5f2276e16b1b64f8a20182264eabf76abc6 # Parent 099d8470e6c3fc2835bda2c705e276e3acc2e924 add comment diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -503,6 +503,12 @@ ngx_strncasecmp(u_char *s1, u_char *s2, } +/* + * 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) {