rename the statically linked strlcpy to strbcpy

stands for "string bounds copy". Some systems like macOS include their
very own version of strlcpy and testing for that would require some
bloat like gnu automake so I'm just gonna rename it to prevent any
future conflicts. I only test on Linux and OpenBSD anyway. ;)
This commit is contained in:
Jeremy Baxter 2024-01-25 19:47:57 +13:00
parent bee1a5f180
commit b5d61a25cb
5 changed files with 11 additions and 19 deletions

6
util.h
View file

@ -8,10 +8,8 @@
int lfail(lua_State *);
int lfailm(lua_State *, const char *);
#ifndef __OpenBSD__
size_t strlcat(char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
#endif
size_t strbcat(char *, const char *, size_t);
size_t strbcpy(char *, const char *, size_t);
void strprepend(char *, const char *);
#endif