[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Man page for fopen in a+ mode is misleading

From: Joshua Redstone
Subject: Man page for fopen in a+ mode is misleading
Date: Tue, 16 Sep 2003 15:43:19 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701

Hi all,

I noticed the fopen man page specifies that fopen in mode "a+"
positions the stream at the end of the file.

I think this is correct with respect to writes.
However, fopen(blah, "a+") followed by ftell() returns 0,
and fopen(blah, "a+") followed by fread() returns data
from the beginning of the file.

Is it possible to have the man page more accurately reflect the
semantics of 'a+'?


Josh Redstone

reply via email to

[Prev in Thread] Current Thread [Next in Thread]