callisto/util.h
Jeremy Baxter 89e584c5f5 util: bundle string.format replacement
Needed for functions like cl.mesg which need to print a formatted
message. Previously these functions had to call string.format, and
would have to throw an error if it was not available.
2024-03-24 18:39:40 +13:00

21 lines
413 B
C

/*
* Callisto - standalone scripting platform for Lua 5.4
* Copyright (c) 2023-2024 Jeremy Baxter.
*/
#ifndef _UTIL_H_
#define _UTIL_H_
#include <stddef.h>
#include <lua/lua.h>
int lfail(lua_State *);
int lfailm(lua_State *, const char *);
int lstrfmt(lua_State *);
size_t strbcat(char *, const char *, size_t);
size_t strbcpy(char *, const char *, size_t);
void strprepend(char *, const char *);
#endif