Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!mit-eddie!rutgers!cbmvax!hutch!rabbit1!dml From: dml@rabbit1.UUCP (David Langdon) Newsgroups: net.unix,net.bicycle Subject: Re: strtol() Message-ID: <248@rabbit1.UUCP> Date: Mon, 3-Nov-86 11:54:18 EST Article-I.D.: rabbit1.248 Posted: Mon Nov 3 11:54:18 1986 Date-Received: Tue, 4-Nov-86 08:22:00 EST References: <1366@mit-trillian.MIT.EDU> Organization: Rabbit Software Corp., Malvern PA Lines: 27 Xref: mnetor net.unix:6131 net.bicycle:2092 > Xref: rabbit1 net.unix:1814 net.bicycle:619 > rlk@mit-trillian.MIT.EDU (Robert L Krawitz): writes > > What does this do? It doesn't seem to exist on my 4.3 system. I > suspect it's a SysV library fn, so it seems like I'll have to write it > myself. (The reason I'm cross-posting it to net.bicycle is that > that's where the particlar program came from.) > > Example: > > long strtol(); > > getnum() > { > return (int)strtol(lineptr, &lineptr, 10); > } > -- > Robert^Z If I'm not mistaken, strtol() is "string-to-long" conversion routine. It takes an ASCII string and converts it to a long value type -- David Langdon Rabbit Software Corp. (215) 647-0440 7 Great Valley Parkway East Malvern PA 19355 ...!ihnp4!{cbmvax,cuuxb}!hutch!dml ...!psuvax1!burdvax!hutch!dml