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. ;)
15 lines
277 B
C
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
|