Bug 208852

Summary: lsearch(3) man page: missing terminating '"' on printf
Product: Documentation Reporter: Loïc Bartoletti <lbartoletti>
Component: Books & ArticlesAssignee: Warren Block <wblock>
Status: Closed FIXED    
Severity: Affects Many People CC: wblock
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Loïc Bartoletti freebsd_committer freebsd_triage 2016-04-17 07:38:16 UTC
Hello,

I've found an error into the example of lsearch man page.

All printf' functions are unterminated, using 0 instead of \n"

printf("Bad input0);
printf("Element found: %d0, *(int *)element);
printf("Element not found0);

Also, int argc, char**argv into main is useless.

Regards.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-04-17 18:25:49 UTC
A commit references this bug:

Author: wblock
Date: Sun Apr 17 18:25:34 UTC 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@tuxfamily.org
  MFC after:	1 week

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