<<< The atod Result | Index | The atoi and itoa Macros >>> |
Once a digit code is encountered, atod continues scanning until any character other than a digit is encountered. Such a character terminates the scan.
The atod macro will typically be used immediately after the input macro.
The input macro produces a string of ASCII codes, including a trailing null character.
When atod is applied to the string, the null character serves as a terminating character for the scan.
If atod is applied to a string that comes from some source other than input, the programmer must ensure that the string has some trailing non-digit character to prevent atod from scanning too far.
<<< The atod Result | Index | The atoi and itoa Macros >>> |