Difference between revisions of "Talk:c/io/fputc"
From cppreference.com
m |
(re putc vs fputc) |
||
Line 2: | Line 2: | ||
That seems to be unclear to me: Why does putc() exist at all? When shall this be used? --[[User:Roker|Roker]] ([[User talk:Roker|talk]]) 14:07, 13 June 2024 (PDT) | That seems to be unclear to me: Why does putc() exist at all? When shall this be used? --[[User:Roker|Roker]] ([[User talk:Roker|talk]]) 14:07, 13 June 2024 (PDT) | ||
+ | |||
+ | : fputc is better because it's a real function. putc is ancient history macro from the original unix, check out how it was defined back then: https://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/include/stdio.h --[[User:Cubbi|Cubbi]] ([[User talk:Cubbi|talk]]) 18:54, 13 June 2024 (PDT) |
Latest revision as of 17:54, 13 June 2024
[edit] What is the benefit of putc() over fputc()?
That seems to be unclear to me: Why does putc() exist at all? When shall this be used? --Roker (talk) 14:07, 13 June 2024 (PDT)
- fputc is better because it's a real function. putc is ancient history macro from the original unix, check out how it was defined back then: https://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/include/stdio.h --Cubbi (talk) 18:54, 13 June 2024 (PDT)