size_t fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream);
The st_ctime and st_mtime fields of the file are
marked for update between the successful execution of
Points to the buffer that is to hold the data written.
Is the size of one of the elements to be written.
Is the number of elements to be written.
Points to the output stream.
Another process has the file locked.
The O_NONBLOCK flag is set for the file descriptor underlying stream, and the process would be delayed in the write operation.
stream is not a valid stream opened for writing.
The file is a regular file and an attempt was made to write at or beyond the offset maximum.
A signal interrupted the call.
An output error occurred.
Memory could not be allocated for internal buffers.
An attempt is made to write to a full disk.
A device error occurred.
An attempt is made to write to a closed pipe or FIFO.
If the stream is from a file opened in text mode, linefeed is translated to carriage-return linefeed on output. No such translation occurs for files opened in binary mode.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
abort(), exit(), fclose(), fopen(), fread(), getc(), gets(), lseek(), printf(), putc(), puts(), read(), scanf(), write()
PTC MKS Toolkit 10.3 Documentation Build 39.