scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stdarg.h>
 2#include <stdint.h>
 3#include <stdio.h>
 4
 5#undef vsprintf
 6
 7int
 8vsprintf(char *restrict s, const char *restrict fmt, va_list va)
 9{
10	uintptr_t addr = (uintptr_t) s;
11
12	return vsnprintf(s, UINTPTR_MAX - addr, fmt, va);
13}