The function begins copying from the address specified (str) until it reaches the terminating null character ('\0'). This final null-character is not copied to stdout.
Using fputs(str,stdout) instead, performs the same operation as puts(str) but without appending the newline character at the end.
Parameters
- str
- C string to be written.
Return Value
On success, a non-negative value is returned.On error, the function returns EOF.
Example
| 1 2 3 4 5 6 7 8 |
|
See also
| fputs | Write string to stream (function) |
| printf | Print formatted data to stdout (function) |
| putchar | Write character to stdout (function) |
| gets | Get string from stdin (function) |
