aboutsummaryrefslogtreecommitdiffstats
path: root/io/fputs.c
blob: f12125363d4fea5ff190e950d897c6480eba49ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "io.h"
#include <errno.h>

int fputs(char const *restrict string, FILE *restrict stream)
{

	for (size_t i = 0; string[i]; ++i) {
        if(_fputc_wrap(string[i], stream)==_eof_wrap){return _eof_wrap;};
	}
	return 0;
}