21 ms·
That's answered below: > On success, puts(3) appears to return '\n', the newline or line feed (LF) character, which has ASCII value... 10. But note that that
by woodruffw 5y ago
That's answered below:
> On success, puts(3) appears to return '\n', the newline or line feed (LF) character, which has ASCII value... 10.
But note that that isn't standard behavior. The language in POSIX[1] is identical to that in the blog post. `puts` is free to return whatever positive number it wants on return.
[1]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/puts.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/p...