comparison src/core/ngx_string.c @ 1550:d0bdd5f2276e

add comment
author Igor Sysoev <igor@sysoev.ru>
date Mon, 01 Oct 2007 13:00:30 +0000
parents 998c44b19e30
children f045c67ab622
comparison
equal deleted inserted replaced
1549:099d8470e6c3 1550:d0bdd5f2276e
501 501
502 return 0; 502 return 0;
503 } 503 }
504 504
505 505
506 /*
507 * ngx_strstrn() and ngx_strcasestrn() are intended to search for static
508 * substring with known length in null-terminated string. The argument n
509 * must be length of the second substring - 1.
510 */
511
506 u_char * 512 u_char *
507 ngx_strstrn(u_char *s1, char *s2, size_t n) 513 ngx_strstrn(u_char *s1, char *s2, size_t n)
508 { 514 {
509 u_char c1, c2; 515 u_char c1, c2;
510 516