00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GRU_ALT_H
00017 #define GRU_ALT_H
00018
00019 #include <string.h>
00020
00021 #include "common/gru_base.h"
00022 #include "common/gru_portable.h"
00023
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 #ifndef HAVE_STRLCPY
00034
00042 gru_export size_t strlcpy(
00043 char *gru_restrict dst, const char *gru_restrict src, size_t size);
00044
00052 gru_export size_t strlcat(
00053 char *gru_restrict dst, const char *gru_restrict src, size_t size);
00054
00055 #endif // HAVE_STRLCPY
00056
00057 #ifndef HAVE_STRNDUP
00058
00064 gru_export char *strndup(const char *source, size_t limit);
00065 #endif // HAVE_STRNDUP
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif