lua-users home
lua-l archive

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


On Thu 8 Sep 2011, at 11:47, steve donovan wrote:
> 
> I assumed that it did, thanks for correcting that.  The portable C way
> is to check what the number of bytes which fwrite returns.


In my tests (on Mac OS X) fprintf() writing to a FILE* stream open for reading returns a successful result, but errno and the ferror() flag are set.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/