bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] libc-mini: Don't print newline in puts


From: W. J. van der Laan
Subject: [PATCH] libc-mini: Don't print newline in puts
Date: Sun, 18 Apr 2021 13:35:19 +0000

* lib/stdlib/puts.c (puts): Don't print a newline after printing the
string, as this is not part of the specified behavior.
---
lib/stdlib/puts.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/stdlib/puts.c b/lib/stdlib/puts.c
index 
fea5dff61b88fedc4f209932bb1ffde202e968e2..4d0d2fd165f7a892303a2de4a18eeb4f72947dc1
 100644
--- a/lib/stdlib/puts.c
+++ b/lib/stdlib/puts.c
@@ -23,6 +23,5 @@
int
puts (char const *s)
{
-  oputs (s);
-  return oputs ("\n");
+  return oputs (s);
}
--
2.27.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]