Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef CONNECT___NCBI_ANSI_EXT__H
2 #define CONNECT___NCBI_ANSI_EXT__H
33 * Non-ANSI, yet widely used string/memory functions
53 # define strnlen NCBI_strnlen
60 size_t strnlen(
const char*
str,
size_t maxlen);
70 # define strdup NCBI_strdup
79 #elif defined(NCBI_COMPILER_MSVC)
80 # define strdup _strdup
89 # define strndup NCBI_strndup
104 #ifdef NCBI_COMPILER_MSVC
106 # define strcasecmp _stricmp
107 # define strncasecmp _strnicmp
109 #elif !defined(HAVE_STRCASECMP)
115 # define strcasecmp NCBI_strcasecmp
116 # define strncasecmp NCBI_strncasecmp
123 int strcasecmp(
const char* s1,
const char* s2);
131 int strncasecmp(
const char* s1,
const char* s2,
size_t n);
140 #define strupr NCBI_strupr
141 #define strlwr NCBI_strlwr
163 char*
strncpy0(
char* s1,
const char* s2,
size_t n);
171 #define memcchr NCBI_memcchr
177 void*
memcchr(
const void* s,
int c,
size_t n);
187 #define memrchr NCBI_memrchr
193 void*
memrchr(
const void* s,
int c,
size_t n);
static const char * str(char *buf, int n)
#define NCBI_XCONNECT_EXPORT
double NCBI_simple_atof(const char *s, char **e)
Locale-independent ASCII-to-double conversion of string "s".
int NCBI_HasSpaces(const char *s, size_t n)
Return non-zero(true) if a block of memory based at "s" and of size "n" has any space characters (as ...
char * strncpy0(char *s1, const char *s2, size_t n)
Copy not more than "n" characters from string "s2" into "s1", and return the result,...
char * NCBI_simple_ftoa(char *s, double f, int p)
Locale-independent double-to-ASCII conversion of value "f" into a character buffer pointed to by "s",...