strwrap.h 613 Bytes
Newer Older
1 2 3
#ifndef _STRWRAP_H_
#define _STRWRAP_H_

deuce's avatar
deuce committed
4 5 6 7
#include <string.h>

#if !defined _MSC_VER && !defined __BORLANDC__

8 9 10 11 12 13 14 15 16
#if defined(__cplusplus)
extern "C" {
#endif
char* itoa(int val, char* str, int radix);
char* ltoa(long val, char* str, int radix);
#if defined(__cplusplus)
}
#endif

deuce's avatar
deuce committed
17 18 19 20
#define strset(x,y)	memset(x, y, strlen(x))

#endif

Deucе's avatar
Deucе committed
21
#if defined(_MSC_VER) || defined(__MSVCRT__)
22 23 24 25 26
#if defined(__cplusplus)
extern "C" {
#endif

char *strndup(const char *str, size_t maxlen);
27
#if defined(_WIN32) && !defined(_MSC_VER)
28
size_t strnlen(const char *s, size_t maxlen);
29
#endif
30 31 32 33 34 35

#if defined(__cplusplus)
}
#endif
#endif

36
#endif