shithub: scc

ref: 9910099b383e28a0a8b9b8c26ea99a5a2d77f5b3
dir: /src/libc/stdio/fputs.c/

View raw version
#include <stdio.h>

#undef fputs

int
fputs(const char * restrict bp, FILE * restrict fp)
{
	int r, ch;

	while ((ch = *bp++) != '\0')
		r = putc(ch, fp);

	return r;
}