From 000a7c045c98c30aac86db93f8c9c978e5ca8c59 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 14:25:31 -0500 Subject: update standards and safety checks --- src/stdio/puts.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/stdio/puts.c') diff --git a/src/stdio/puts.c b/src/stdio/puts.c index 1e73158c..3392228e 100644 --- a/src/stdio/puts.c +++ b/src/stdio/puts.c @@ -1,14 +1,14 @@ -#if 0 - #include #include "_stdio.h" -/** write a string to stoud **/ +/** write a string to stdout **/ int puts(const char *s) { int ret = 1; + SIGNAL_SAFE(0); + flockfile(stdout); while (*s) { @@ -41,6 +41,3 @@ followed by a newline. The terminated CHAR(\0) is not written. /* STDC(1) */ - - -#endif -- cgit v1.2.1