X-Git-Url: https://git.datadissipation.net/libcext/blobdiff_plain/5677abe79fa7c55501bc1fb545caf30cf5fda34c..HEAD:/strlcat.h diff --git a/strlcat.h b/strlcat.h index 1235ae3..f1a035d 100644 --- a/strlcat.h +++ b/strlcat.h @@ -15,24 +15,23 @@ */ /* https://git.datadissipation.net */ -#ifndef STRLCAT_H_ - #define STRLCAT_H_ 1 +#ifndef LCE_STRLCAT_H + #define LCE_STRLCAT_H 1 - #ifdef STRLCAT_INCLUDE_LIBC - #include + #ifdef LCE_STRLCAT_INCLUDE_LIBC #include #include - #endif /* !STRLCAT_INCLUDE_LIBC */ + #endif /* !LCE_STRLCAT_INCLUDE_LIBC */ #ifndef HAVE_STRLCAT #define HAVE_STRLCAT 1 - #define strlcat i_strlcat_ - #define strlcpy i_strlcpy_ -size_t i_strlcat_(char *dst, const char *src, size_t siz); -size_t i_strlcpy_(char *dst, const char *src, size_t siz); + #define strlcat lce_strlcat_ + #define strlcpy lce_strlcpy_ +size_t lce_strlcat_(char *dst, const char *src, size_t siz); +size_t lce_strlcpy_(char *dst, const char *src, size_t siz); #endif /* !HAVE_STRLCAT */ - #ifdef STRLCAT_IMPLEMENTATION + #ifdef LCE_STRLCAT_IMPLEMENTATION /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters @@ -41,7 +40,7 @@ size_t i_strlcpy_(char *dst, const char *src, size_t siz); * If retval >= siz, truncation occurred. */ size_t -i_strlcat_(char *dst, const char *src, size_t siz) +lce_strlcat_(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; @@ -71,7 +70,7 @@ i_strlcat_(char *dst, const char *src, size_t siz) * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t -i_strlcpy_(char *dst, const char *src, size_t siz) +lce_strlcpy_(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; @@ -92,5 +91,5 @@ i_strlcpy_(char *dst, const char *src, size_t siz) } return(s - src - 1); /* count does not include NUL */ } - #endif /* STRLCAT_IMPLEMENTATION */ -#endif /* !STRLCAT_H_ */ + #endif /* LCE_STRLCAT_IMPLEMENTATION */ +#endif /* !LCE_STRLCAT_H */