+ 2

What's the role of the function fputs in C?

12th Dec 2019, 2:21 PM
Bochra El-Arfaoui
Bochra El-Arfaoui - avatar
2 Answers
+ 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++.
12th Dec 2019, 3:33 PM
Josh Greig
Josh Greig - avatar
0
Josh Greig that helps a lot. Thank you ♡
12th Dec 2019, 4:03 PM
Bochra El-Arfaoui
Bochra El-Arfaoui - avatar