shithub: scc

ref: 6853b1e9d0763d49d00264f9c1cd3edc25c3299b
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);
}