blob: 5f78ca7bc3def4ae77302d4feb10a80ff1a5262a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "stdio_impl.h"
int fputs(const char *s, FILE *f)
{
size_t l = strlen(s);
if (!l) return 0;
return (int)fwrite(s, l, 1, f) - 1;
}
int fputs_unlocked(const char *s, FILE *f)
{
size_t l = strlen(s);
if (!l) return 0;
return (int)fwrite(s, l, 1, f) - 1;
}
|