shithub: scc

ref: 58b406cf181a732417b57119b9da46836a2b3ada
dir: /lib/c/putc.c/

View raw version
#include <stdio.h>
#undef putc

int
putc(int ch, FILE *fp)
{
	return (fp->wp >= fp->rp) ? __putc(ch,fp) : (*fp->wp++ = ch);
}