shithub: scc

ref: d2278660a0bce54ae4a5d37f2fbc6dd4c2f459c8
dir: /src/libc/stdio/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);
}