Article View: comp.std.c
Article #6150Re: Another scanf interpretation question
From: Doug Gwyn
Date: Fri, 05 Jan 1990 01:59
Date: Fri, 05 Jan 1990 01:59
11 lines
836 bytes
836 bytes
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.
Technical Details
Message-ID:
<11880@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!smoke!gwynReferences:
<21624@mimsy.umd.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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