Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
fwrite
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The fwrite function writes up to <count> items, each of <length>
size, from <buffer> to the output stream. The file pointer
associated with <stream> (if there is one) is incremented by the
number of bytes actually written.
If <stream> is opened in text mode, each carriage return is
replaced with a carriage-return──line-feed pair. The replacement
has no effect on the return value.
Return Value
The fwrite function returns the number of full items actually
written, which may be less than <count> if an error occurs. Also,
if an error occurs, the file-position indicator cannot be
determined.
-♦-