chiark / gitweb /
[PATCH] sync with latest version of klibc (0.107)
[elogind.git] / klibc / klibc / fputs.c
1 /*
2  * fputs.c
3  *
4  * This isn't quite fputs() in the stdio sense, since we don't
5  * have stdio, but it takes a file descriptor argument instead
6  * of the FILE *.
7  */
8
9 #include <stdio.h>
10 #include <string.h>
11
12 int fputs(const char *s, FILE *file)
13 {
14   return _fwrite(s, strlen(s), file);
15 }