Mercurial > hg > nginx-quic
comparison src/core/ngx_string.h @ 1648:89a47f19b9ec
update ngx_memcmp()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 23 Nov 2007 17:00:11 +0000 |
parents | bef67c6abbe7 |
children | ec63069aeb78 |
comparison
equal
deleted
inserted
replaced
1647:c68477afa410 | 1648:89a47f19b9ec |
---|---|
112 | 112 |
113 #endif | 113 #endif |
114 | 114 |
115 | 115 |
116 /* msvc and icc7 compile memcmp() to the inline loop */ | 116 /* msvc and icc7 compile memcmp() to the inline loop */ |
117 #define ngx_memcmp memcmp | 117 #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n) |
118 | 118 |
119 | 119 |
120 u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n); | 120 u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n); |
121 u_char *ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src); | 121 u_char *ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src); |
122 u_char * ngx_cdecl ngx_sprintf(u_char *buf, const char *fmt, ...); | 122 u_char * ngx_cdecl ngx_sprintf(u_char *buf, const char *fmt, ...); |