StringToNum
StringToNum Convert string of decimal digits to binary number
#include <BDC.h> Binary-Dec. Pack.
void StringToNum(theString, theNum );
Str255 theString ; address pascal string with decimal digits
long *theNum ; address of signed long; receives binary value
StringToNum interprets a string of decimal digits and obtains its binary
value, as a 32-bit signed integer.
theString is the address of a pascal-style length-prefixed string containing
the characters to convert. It may contain a leading plus (’+') or
minus (’-') sign and up to 10 digits (’0' to '9').
Note: This function does NOT check the validity of the digits in
theString. If you want a valid conversion in theNum, the characters
must be in the range of '0' to '9'. The string should NOT contain
commas, periods, or spaces; however, leading spaces or zeros are
OK.
theNum is the address of a signed long integer. Upon return, it will contain
the binary equivalent of the digits contained in theString.
Returns: none

Notes: The range is from "-2147483648" to "+2147483648".
The conversion is performed modulo 2,147,483,648 (i.e., 2^31, about 2
billion) and if a leading minus sign is present, the result is negated by
taking its two's complement.