3 ms·
Are you sure it's finished? Did it handle the case where the output stream couldn't be written to, for example?
by adhesive_wombat 3y ago
Are you sure it's finished? Did it handle the case where the output stream couldn't be written to, for example?
- alexvitkov 3y agoLikely no, just like any other software ever written.
- OkayPhysicist 3y agoThat's outside of scope. Most programs should fail when faced with situations outside their purview.
- adhesive_wombat 3y agoYes, but if you don't check the printf return code (in C, say) the program won't fail. It'll return 0 (i.e. report success) but it did not do what it promised to do on the tin. If you only check its non-negativity, you might only have written "Hell" and again the program merrily carries on and says "all OK: 0!"