Mercurial > hg > nginx
diff src/core/ngx_string.h @ 3887:e7798b5e990a
use memmove() in appropriate places
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Apr 2011 08:02:46 +0000 |
parents | 7224d008faaf |
children | 61e4af19df9f |
line wrap: on
line diff
--- a/src/core/ngx_string.h +++ b/src/core/ngx_string.h @@ -135,6 +135,10 @@ ngx_copy(u_char *dst, u_char *src, size_ #endif +#define ngx_memmove(dst, src, n) (void) memmove(dst, src, n) +#define ngx_movemem(dst, src, n) (((u_char *) memmove(dst, src, n)) + (n)) + + /* msvc and icc7 compile memcmp() to the inline loop */ #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n)