11 lines
197 B
C
11 lines
197 B
C
|
#include "stdio_impl.h"
|
||
|
#include <string.h>
|
||
|
|
||
|
int fputs(const char *restrict s, FILE *restrict f)
|
||
|
{
|
||
|
size_t l = strlen(s);
|
||
|
return (fwrite(s, 1, l, f)==l) - 1;
|
||
|
}
|
||
|
|
||
|
weak_alias(fputs, fputs_unlocked);
|