2 ms·
That's actually a great example. Note that it is a distinct sentinel error value that needs to be checked for (contrary to your initial assertion), and if you f
by int_19h 2y ago
That's actually a great example. Note that it is a distinct sentinel error value that needs to be checked for (contrary to your initial assertion), and if you forget to do it, you'll just end up with garbage.
But also, let's say the read function in question is named ReadInt32. Then what does it return on error?