shithub: scc

ref: 3a079f24c514f9783a7dd15e85a02eae4c25e695
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);
}