summaryrefslogtreecommitdiffstats
path: root/usr/klibc/fputs.c
blob: cbc2056be53045be94c936aa3b3a0f59281b7512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * fputs.c
 *
 * This isn't quite fputs() in the stdio sense, since we don't
 * have stdio, but it takes a file descriptor argument instead
 * of the FILE *.
 */

#include <stdio.h>
#include <string.h>

int fputs(const char *s, FILE *file)
{
	return _fwrite(s, strlen(s), file);
}
__ALIAS(int, fputs_unlocked, (const char *, FILE *), fputs)