mirror of
https://github.com/fluencelabs/musl
synced 2025-06-21 18:51:52 +00:00
initial check-in, version 0.5.0
This commit is contained in:
10
src/stdio/fputs.c
Normal file
10
src/stdio/fputs.c
Normal file
@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
weak_alias(fputs, fputs_unlocked);
|
Reference in New Issue
Block a user