standards/84610: Error um printf man page. Return value is diff.

João Rocha Braga Filho goffredo at gmail.com
Sat Aug 6 11:20:13 GMT 2005


>Number:         84610
>Category:       standards
>Synopsis:       Error um printf man page. Return value is diff.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-standards
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 06 11:20:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     João Rocha Braga Filho
>Release:        5.4-STABLE
>Organization:
>Environment:
FreeBSD senechal.webkey.com.br 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun May 15 18:50:14 BRT 2005     goffredo at senechal.webkey.com.br:/usr/src/sys/i386/compile/SENECHAL  i386

>Description:
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.
"

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-standards mailing list