rewrite popen to use posix_spawn instead of fragile vfork hacks
[musl] / src / stdio / fputs.c
1 #include "stdio_impl.h"
2 #include <string.h>
3
4 int fputs(const char *restrict s, FILE *restrict f)
5 {
6         size_t l = strlen(s);
7         if (!l) return 0;
8         return (int)fwrite(s, l, 1, f) - 1;
9 }
10
11 weak_alias(fputs, fputs_unlocked);