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