
This school project led me to the conclusion that most C functions suck, and you can't even clear the screen in a standard way.. ;D
About half of the standard functions are sub-par, I agree with that.bubach wrote: This school project led me to the conclusion that most C functions suck...
The eternal struggle between the concepts of language vs. library. Don't compare C (which has a real bare-bones library) with Perl / CPAN or Java. I think C/C++ did it the right way when they left all "fancy" stuff to third-party libraries. After all, how would you define "screen" in a portable way?...and you can't even clear the screen in a standard way.. ;D
If you can write to the screen you should be able to do other things with it too, like clearing it or changing cursor position.Solar wrote:After all, how would you define "screen" in a portable way?
It is not treated like a file. Because you cannot position on it.bubach wrote: You can change position inside a file, right? So why not on the screen, if it's treated like a file?
Yes, because it's using the wrong tool for the right thing. Take (or write) a library that does the extended terminal stuff. You don't do for-loops of putchar() for printing lines, either.Doing for-loops with printf("\b"); gets ugly pretty fast..![]()
Pointless - I don't think so.Anyway, this is pretty pointless and very OT.