forked from github/server
e119a29142
a little more speed for locale_string (less strcmp)
19 lines
400 B
C
19 lines
400 B
C
#ifndef UTIL_BSDSTRING_H
|
|
#define UTIL_BSDSTRING_H
|
|
|
|
#if !defined(HAVE_STRLCPY)
|
|
# ifdef HAVE_INLINE
|
|
# include "bsdstring.c"
|
|
# define HAVE_STRLCPY
|
|
# else
|
|
extern size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
extern size_t strlcat(char * dst, const char * src, size_t siz);
|
|
# endif
|
|
#endif
|
|
|
|
#if !defined(HAVE_STRLPRINTF)
|
|
# define HAVE_STRLPRINTF
|
|
# define slprintf snprintf
|
|
#endif
|
|
|
|
#endif
|