Sean Kelly wrote:
Andrei Alexandrescu Wrote:C APIs also check their arguments.Not the standard C library, as far as I know. Of course, it's also gotten a lot of flak for this.
Nonono. They check whenever they can. Oftentimes they're unable to check.Example: fseek checks its whence parameter (mentioned in my previous post) but itoa cannot check that the target is a valid memory buffer of the appropriate length.
Andrei