callisto/util.h
Jeremy Baxter cae9985747 change BSD ifndefs to __OpenBSD__ and remove unnecessary ifdefs
I'm not sure if any operating system other than OpenBSD
has strlcpy/strlcat. May need to use a configure script
for this later on.
2023-12-23 16:33:38 +13:00

17 lines
304 B
C

#ifndef _UTIL_H_
#define _UTIL_H_
#include <stddef.h>
#include <lua.h>
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
void strprepend(char *, const char *);
#endif