Return Value
On success, the total number of characters written is returned. This count does not include the additional null-character automatically appended at the end of the string.
On failure, a negative number is returned.
Example
|
|
Output:
[5 plus 3 is 8] is a 13 char long string