svn commit: r298156 - head/lib/libc/stdlib

Warren Block wblock at FreeBSD.org
Sun Apr 17 18:25:35 UTC 2016


Author: wblock (doc committer)
Date: Sun Apr 17 18:25:34 2016
New Revision: 298156
URL: https://svnweb.freebsd.org/changeset/base/298156

Log:
  Fix markup on "\n" in printf so it renders correctly.
  
  PR:		208852
  Submitted by:	coder at tuxfamily.org
  MFC after:	1 week

Modified:
  head/lib/libc/stdlib/lsearch.3

Modified: head/lib/libc/stdlib/lsearch.3
==============================================================================
--- head/lib/libc/stdlib/lsearch.3	Sun Apr 17 16:51:18 2016	(r298155)
+++ head/lib/libc/stdlib/lsearch.3	Sun Apr 17 18:25:34 2016	(r298156)
@@ -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);
 }


More information about the svn-src-head mailing list