Added mem_realloc and string functions

This commit is contained in:
Jozef Nagy 2025-01-25 23:28:33 +01:00
parent 56c522d05a
commit 12c9b4fdcc
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
10 changed files with 278 additions and 15 deletions

View file

@ -66,3 +66,10 @@ void debug(const char *fmt, ...)
#endif
}
void snprintf(char *buf, size_t size, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
npf_vsnprintf(buf, size, fmt, args);
va_end(args);
}