Mercurial > hg > nginx-quic
view src/core/ngx_string.h @ 63:36d2c25cc9bb
nginx-0.0.1-2003-02-26-23:21:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 26 Feb 2003 20:21:43 +0000 |
parents | 27b628ef907e |
children | 5a7d1aaa1618 |
line wrap: on
line source
#ifndef _NGX_STRING_H_INCLUDED_ #define _NGX_STRING_H_INCLUDED_ #include <ngx_config.h> typedef struct { size_t len; char *data; } ngx_str_t; #define ngx_string(str) { sizeof(str) - 1, str } #if (WIN32) #define ngx_memzero ZeroMemory #define ngx_strncasecmp strnicmp #define ngx_strcasecmp stricmp #define ngx_strncmp strncmp #define ngx_strcmp strcmp #define ngx_strlen strlen #define ngx_snprintf _snprintf #define ngx_vsnprintf _vsnprintf #else #define ngx_memzero bzero #define ngx_strncasecmp strncasecmp #define ngx_strcasecmp strcasecmp #define ngx_strncmp strncmp #define ngx_strcmp strcmp #define ngx_strlen strlen #define ngx_snprintf snprintf #define ngx_vsnprintf vsnprintf #endif #define ngx_memcpy(dst, src, n) memcpy(dst, src, n) #define ngx_cpymem(dst, src, n) memcpy(dst, src, n) + n char *ngx_cpystrn(char *dst, char *src, size_t n); #endif /* _NGX_STRING_H_INCLUDED_ */