shithub: scc

ref: 8379c7f20b9346a7cd69808c58661bfc2e0d39f5
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);
}