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(char *gru_restrict dst,
00043 const char *gru_restrict src,
00044 size_t size);
00045
00053 gru_export size_t strlcat(char *gru_restrict dst,
00054 const char *gru_restrict src,
00055 size_t size);
00056
00057 #endif // HAVE_STRLCPY
00058
00059 #ifndef HAVE_STRNDUP
00060
00066 gru_export char *strndup(const char *source, size_t limit);
00067 #endif // HAVE_STRNDUP
00068
00069 #ifdef __cplusplus
00070 }
00071 #endif
00072
00073 #endif