summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fputs_unlocked.c
blob: aeab8d321da6874bc19c4af4b606db5b55395d62 (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <string.h>

int fputs_unlocked(const char *s, FILE *stream)
{
	size_t len = strlen(s);

	return fwrite_unlocked(s, 1, len, stream) == len ? 0 : EOF;
}