strtol()

David Langdon dml at rabbit1.UUCP
Tue Nov 4 02:54:18 AEST 1986


> Xref: rabbit1 net.unix:1814 net.bicycle:619
> rlk at 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



More information about the Comp.unix mailing list