[Bug 345062] [NEW] fread(3) man page EXAMPLES section is misleading
Jared D. McNeill
jmcneill at NetBSD.org
Wed Mar 18 21:01:23 UTC 2009
Public bug reported:
Binary package hint: manpages-posix-dev
Description: Ubuntu 8.10
Release: 8.10
manpages-posix-dev:
Installed: 2.16-1
Candidate: 2.16-1
Version table:
*** 2.16-1 0
500 http://archive.ubuntu.com intrepid/multiverse Packages
100 /var/lib/dpkg/status
The EXAMPLES section of the fread(3) man page uses the following
snippet:
#include <stdio.h>
...
size_t bytes_read;
char buf[100];
FILE *fp;
...
bytes_read = fread(buf, sizeof(buf), 1, fp);
...
However, fread returns the number of elements read, not the number of
bytes read.
** Affects: manpages-posix (Ubuntu)
Importance: Undecided
Status: New
--
fread(3) man page EXAMPLES section is misleading
https://bugs.launchpad.net/bugs/345062
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list