shithub: scc

ref: 12934f8fb43662ca8bc906caaad5f5e8ccbb6bc1
dir: /lib/c/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);
}