new xj_snprintf and xj_decodef. Code from stb_sprintf was pulled in

This commit is contained in:
cozis
2022-04-28 13:04:41 +02:00
parent 12ffc1a667
commit 8fbdd029d4
6 changed files with 1736 additions and 5 deletions
+8
View File
@@ -0,0 +1,8 @@
#ifndef XJ_SNPRINTF_H
#define XJ_SNPRINTF_H
#include <stdarg.h>
#include "xjson.h"
int xj_vsnprintf(char *buf, int count, const char *fmt, va_list va);
xj_value *xj_vdecodef(xj_alloc *alloc, xj_error *error, const char *fmt, va_list va);
xj_value *xj_decodef(xj_alloc *alloc, xj_error *error, const char *fmt, ...);
#endif