From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/stdio/fputs_unlocked.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/libc/stdio/fputs_unlocked.c (limited to 'lib/libc/stdio/fputs_unlocked.c') diff --git a/lib/libc/stdio/fputs_unlocked.c b/lib/libc/stdio/fputs_unlocked.c new file mode 100644 index 00000000..aeab8d32 --- /dev/null +++ b/lib/libc/stdio/fputs_unlocked.c @@ -0,0 +1,9 @@ +#include +#include + +int fputs_unlocked(const char *s, FILE *stream) +{ + size_t len = strlen(s); + + return fwrite_unlocked(s, 1, len, stream) == len ? 0 : EOF; +} -- cgit v1.2.3