shithub: scc

ref: 56f48a1788a3d7e1e6ee53d58f4849c6b9b3a01c
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;
}