MAXOUT
int len = vsnprintf(&Outbuf[Outidx], MAXOUT - Outidx, fmt, ap);
if (Outidx >= MAXOUT)
Outidx = MAXOUT - 1;
static char Outbuf[MAXOUT];