[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: file:write() fails silently for read-only files
- From: Tony Finch <dot@...>
- Date: Thu, 8 Sep 2011 11:54:15 +0100
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/
- References:
- file:write() fails silently for read-only files, HyperHacker
- Re: file:write() fails silently for read-only files, startx
- Re: file:write() fails silently for read-only files, HyperHacker
- Re: file:write() fails silently for read-only files, startx
- Re: file:write() fails silently for read-only files, steve donovan
- Re: file:write() fails silently for read-only files, Enrico Colombini
- Re: file:write() fails silently for read-only files, Josh Simmons
- Re: file:write() fails silently for read-only files, Josh Simmons
- Re: file:write() fails silently for read-only files, steve donovan
- Re: file:write() fails silently for read-only files, liam mail
- Re: file:write() fails silently for read-only files, steve donovan