I just spent 10 years making this work.
The Lounge
22
Posts
12
Posters
2
Views
1
Watching
-
I do actually have
puts
working on Windows and Linux so yes I could do that. The sample apps I've written requireprintf
in a few places although if you useprintf
with just a format string, no parameters, GCC 'magically' turns it into a call toputs
anyway."The secret of happiness is freedom, and the secret of freedom, courage." Thucydides (B.C. 460-400)
Though it annoys me that compilers are smart enough to replace what you tell them to do, with what you meant to tell them to do (even if you didn't know you meant to do it), that is a good safety feature. printf's can be very unsafe....
-
How about simplifying the effort and use puts()?