Bug 84610

Summary: Error um printf man page. Return value is diff.
Product: Base System Reporter: goffredo
Component: standardsAssignee: freebsd-standards (Nobody) <standards>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.4-STABLE   
Hardware: Any   
OS: Any   

Description goffredo 2005-08-06 12:20:12 UTC
Man page says:
"
DIAGNOSTICS
     The printf utility exits 0 on success, and >0 if an error occurs.
"
But works diff. And my ANSI 89 C book says:
"
The printf function returns the number of characters it has printed.
In case of error, it returns a negative value.
"
Comment 1 Stefan Farfeleder freebsd_committer freebsd_triage 2005-08-06 13:03:10 UTC
State Changed
From-To: open->closed

Try `man 3 printf' for the printf() C library function.  The text you  
quoted is from printf(1) which is the man page for /usr/bin/printf.