Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2016 03:15:10 +0000 (UTC)
From:      Warren Block <wblock@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r298529 - stable/10/lib/libc/stdlib
Message-ID:  <201604240315.u3O3FAwt032574@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wblock (doc committer)
Date: Sun Apr 24 03:15:10 2016
New Revision: 298529
URL: https://svnweb.freebsd.org/changeset/base/298529

Log:
  MFC r298156:
  
  Fix markup on "\n" in printf so it renders correctly.

Modified:
  stable/10/lib/libc/stdlib/lsearch.3
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/stdlib/lsearch.3
==============================================================================
--- stable/10/lib/libc/stdlib/lsearch.3	Sun Apr 24 03:13:02 2016	(r298528)
+++ stable/10/lib/libc/stdlib/lsearch.3	Sun Apr 24 03:15:10 2016	(r298529)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604240315.u3O3FAwt032574>