Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Another scanf interpretation question Message-ID: <11880@smoke.BRL.MIL> Date: 5 Jan 90 01:59:29 GMT References: <21624@mimsy.umd.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <21624@mimsy.umd.edu> chris@mimsy.umd.edu (Chris Torek) writes: -... strtol and strtoul - are defined such that they `accept' numbers of the form - + -and - - -(which both convert to the value 0). ... No, I don't think so. A subset of the "expected form" of the subject sequence is an integer constant according to the rules of 3.1.3.2, and empty strings do not qualify as valid integer constants.