Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!snail!carroll From: carroll@snail.CS.UIUC.EDU Newsgroups: net.unix Subject: Re: strtol() Message-ID: <3800018@snail> Date: Mon, 3-Nov-86 16:32:00 EST Article-I.D.: snail.3800018 Posted: Mon Nov 3 16:32:00 1986 Date-Received: Wed, 5-Nov-86 05:55:31 EST References: <1366@mit-trillian.MIT.EDU> Lines: 19 Nf-ID: #R:mit-trillian.MIT.EDU:1366:snail:3800018:000:693 Nf-From: snail.CS.UIUC.EDU!carroll Nov 3 15:32:00 1986 From the SysV "Programmers Reference Manual" : long strtol(str,ptr,base) char *str,**ptr; int base; Strtol returns as a long integer the value represented by the character string pointed to by str. The string is scanned up to the first character inconsistent with the base. Leading whitespace is ignored. If ptr is not NULL, a pointer to the character terminating the scan is returned. If base is positive (and <= 36), it is used as the base for conversion. After an optional leading minus sign, leading zero's are ignored, and a leading 0X or 0x is ignored if base == 16. If base is zero, then a leading zero indicates base 8, leading 0x or 0X indicates base 16, otherwise it is base 10.