strtol()

Robert L Krawitz rlk at mit-trillian.MIT.EDU
Sun Nov 2 03:43:04 AEST 1986


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



More information about the Comp.unix mailing list