callisto/util.h
Jeremy Baxter b5d61a25cb 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. ;)
2024-01-25 19:47:57 +13:00

15 lines
277 B
C

#ifndef _UTIL_H_
#define _UTIL_H_
#include <stddef.h>
#include <lua.h>
int lfail(lua_State *);
int lfailm(lua_State *, const char *);
size_t strbcat(char *, const char *, size_t);
size_t strbcpy(char *, const char *, size_t);
void strprepend(char *, const char *);
#endif