shithub: scc

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