[comp.sources.wanted] need "strtol" source

luke@mtung.ATT.COM (s.l.jones) (02/12/90)

Can anybody give me source for a strtol() routine?  The
Microsoft C 5.1 library doesn't have one, and the one I
use instead doesn't do any error checking.  I'd like one
that, say, set errno to ERANGE on an under- or overflow.

Thanks in advance,
-- 
Luke Jones,  luke@mtung.att.com,  ...!att!mtung!luke,  phone 201/957-2733
Quote:  "System Test?  That's for idiots!"  -me, after "Dirty" H. Calahan
AT&T Bell Labs/Computer Notworking Laboratory/Workstation Notworking Dept.
Disclaimer:  the opinions are mine but I suspect AT&T has rights to them.