Lely core libraries 2.3.4
string.h
Go to the documentation of this file.
1
22#ifndef LELY_LIBC_STRING_H_
23#define LELY_LIBC_STRING_H_
24
25#include <lely/features.h>
26
27#include <string.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#if !LELY_NO_MALLOC
34
35#if !(_MSC_VER >= 1400) && !(_POSIX_C_SOURCE >= 200809L) \
36 && !defined(__MINGW32__)
43char *strdup(const char *s);
44#endif
45
46#if !(_POSIX_C_SOURCE >= 200809L)
54char *strndup(const char *s, size_t size);
55#endif
56
57#endif // !LELY_NO_MALLOC
58
59#if !(_MSC_VER >= 1400) && !(_POSIX_C_SOURCE >= 200809L) \
60 && !defined(__MINGW32__)
68size_t strnlen(const char *s, size_t maxlen);
69#endif
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif // !LELY_LIBC_STRING_H_
This header file is part of the Lely libraries; it contains the compiler feature definitions.
This header file is part of the C11 and POSIX compatibility library; it includes <string....