Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Aug 2005 11:12:30 GMT
From:      Joćo Rocha Braga Filho <goffredo@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   standards/84610: Error um printf man page. Return value is diff.
Message-ID:  <200508061112.j76BCUst061455@www.freebsd.org>
Resent-Message-ID: <200508061120.j76BKCko019096@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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@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:



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