shithub: scc

ref: 2699bac1e5869e2ee92f588d8c91b3a7d19fbaf0
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);
}