+ 2
What's the role of the function fputs in C?
2 Respuestas
+ 2
Like fprintf, fputs outputs to a specified stream. fputs is slightly more efficient than fprintf since fputs doesn't need to look for formatted output symbols marked with % signs.
fputs is like puts except that puts has its FILE *(stream parameter) defaulted to stdout(standard output). Developers would commonly use fputs to write to text files.
The most reliable documentation for fputs is at:
http://www.cplusplus.com/reference/cstdio/fputs/
All the standard libraries and functions are documented on http://www.cplusplus.com. That website is targeted at c++ but the standard c libraries are no different in c++.
0
Josh Greig that helps a lot. Thank you ♡