shithub: scc

ref: 0c1914a98db6a6e1dc72e1d26624ae97e10e6211
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);
}