Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!ut-ngp!ayac071 From: ayac071@ut-ngp.UUCP (William T. Douglass) Newsgroups: comp.lang.c Subject: Re: Big numbers in C? Message-ID: <5739@ut-ngp.UUCP> Date: Tue, 28-Jul-87 19:57:37 EDT Article-I.D.: ut-ngp.5739 Posted: Tue Jul 28 19:57:37 1987 Date-Received: Thu, 30-Jul-87 04:03:40 EDT References: <8529@brl-adm.ARPA> Reply-To: ayac071@ngp.UUCP Organization: UTexas Computation Center, Austin, Texas Lines: 31 In article <8529@brl-adm.ARPA> Alan_Cote.DlosLV-Comm@Xerox.COM writes: >Robert Lord writes: >>Also, I am having a little trouble with this statement: >>strtol(data.number); >> >>Where: data.number[1] == 5 >> data.number[2] == 7 /*Or whatever...Just examples*/ >> data.number[3] == \0 > >If this read a little differently, for example: > data.number[1] == '5' > data.number[2] == '7' /*Or whatever...Just examples*/ > data.number[3] == '\0' > >then strtol(data.number) should return a long value (assuming, of Just wondering, but shouldn't that be indexed from 0, from 1, in order for strtol to work, so that data.number[0] == '5' data.number[1] == '7' data.number[2] == '\0' or am I really hopelessly confused? Bill Douglass ayac071@ngp.UUCP (This looks like me...)