|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack Math1 Conversion ScanOctal|
|See also: ScanHex, ScanDecimal, ScanFPNum, Octal, ScanBin, IsValidHex|
The function ScanOctal decodes a octal number from a string. The parameter Instring contains the octal number to be scanned, starting at the position defined by the parameter Idx. Valid characters are the digits ‘0’...’7’, and leading blanks.
On return, ScanOctal contains the corresponding integer number, and the variable parameter Idx points to the first character after the scanned number. If the octal number constitutes the final part of the string, Idx points to 1+length(Instring ).