From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Saroj Mahapatra Message-ID: <6d3220b4.0302221730.6677da7@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: [9fans] no error checking in strtol and strtoul Date: Mon, 24 Feb 2003 10:00:21 +0000 Topicbox-Message-UUID: 7014f214-eacb-11e9-9e20-41e7f4b1d025 Hi, Was the decision to leave out error checking (like ANSI C strtol and strtoul do) deliberate? The first type of error (wrong syntax) is easy to check (if ret value == 0 and rest == beginning of string), but not handling overflow situation is unsatisfactory. I'd like to hear plan 9 implementators' comment on this. Thanks, Saroj Mahapatra