Write string to stream.
Writes the C string pointed by str to the stream. The function begins copying from the address specified (str) until it reaches the terminating null character ('\0'). This terminating null-character is not copied to the stream.
- Parameters
-
str | C string with the content to be written to stream. |
stream | Pointer to a FILE object that identifies the stream to be closed. |
- Returns
- On success, a non-negative value is returned. On error, the function returns EOF and sets the error indicator.