shithub: scc

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