fputs.c\stdio\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/fputs.c
blob: 1cf344f28c6fe88a9394ef64ebe25ea0fbdcf74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#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);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月14日 07:02:15 +0000

AltStyle によって変換されたページ (->オリジナル) /