summaryrefslogtreecommitdiff
path: root/src/stdio/fputs.c
blob: 9d6a9c90551cac72a02cde2ded776b46f67964fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#if 0

#include <stdio.h>
#include "_stdio.h"

/** write a string to a file stream **/

int fputs(const char * restrict s, FILE * restrict stream)
{
	flockfile(stream);
	while (*s) {
		if (fputc(*s++, stream) == EOF) {
			return EOF;
		}
	}
	funlockfile(stream);

	/*
	RETURN_SUCCESS(NONNEGATIVE());
	RETURN_FAILURE(CONSTANT(EOF));
	*/
	return 1;
}

/***
writes the string ARGUMENT(s) to ARGUMENT(stream), not including
the terminating CHAR(\0) character.
***/

/*
STDC(1)
*/


#endif