cpp/io/c/fwrite

Writes up to binary objects from the given array  to the output stream. The objects are written as if by reinterpreting each object as an array of and calling std  times for each object to write those s into, in order. The file position indicator for the stream is advanced by the number of characters written.

If the objects are not, the behavior is undefined.

If an error occurs, the resulting value of the file position indicator for the stream is indeterminate.

Return value
Number of objects written successfully, which may be less than if an error occurred.

If or  is zero,  returns zero and performs no other action.