on linux, would it be safe to open /dev/null as a regular file for write only to flush stdin? or is there another way to do it?
on linux, would it be safe to open /dev/null as a regular file for write only to flush stdin? or is there another way to do it?
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
thanks.