summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwblock <wblock@FreeBSD.org>2016-04-17 18:25:34 +0000
committerwblock <wblock@FreeBSD.org>2016-04-17 18:25:34 +0000
commitb8e96bf98285cc081754f8b8ee8e724daf0afb38 (patch)
tree80d9e41317b343dce0562c406f0feeb8ce551e05 /lib
parent6c8d2dfeae380107bd9921521d17efd7a1bb642b (diff)
downloadFreeBSD-src-b8e96bf98285cc081754f8b8ee8e724daf0afb38.zip
FreeBSD-src-b8e96bf98285cc081754f8b8ee8e724daf0afb38.tar.gz
Fix markup on "\n" in printf so it renders correctly.
PR: 208852 Submitted by: coder@tuxfamily.org MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/lsearch.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/lsearch.3 b/lib/libc/stdlib/lsearch.3
index 2a1a731..f2f0105 100644
--- a/lib/libc/stdlib/lsearch.3
+++ b/lib/libc/stdlib/lsearch.3
@@ -8,7 +8,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 21, 2013
+.Dd April 17, 2016
.Dt LSEARCH 3
.Os
.Sh NAME
@@ -107,7 +107,7 @@ main(int argc, char **argv)
printf("Enter a number: ");
if (scanf("%d", &key) != 1) {
- printf("Bad input\n");
+ printf("Bad input\en");
return (EXIT_FAILURE);
}
@@ -115,9 +115,9 @@ main(int argc, char **argv)
element_compare);
if (element != NULL)
- printf("Element found: %d\n", *(int *)element);
+ printf("Element found: %d\en", *(int *)element);
else
- printf("Element not found\n");
+ printf("Element not found\en");
return (EXIT_SUCCESS);
}
OpenPOWER on IntegriCloud