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.
17 lines
304 B
C
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
|