ckcvi(input_buffer.i1a.r, start_index.i2.r, num_chars.i2.r,
This routine will convert the number of decimal characters specified
by "num_chars" from the user's byte buffer, "input_buffer", to a two
byte integer value in "value". The conversion starts at the character
position specified by "start_index" (first character is position 1).
If a null character is encountered, the conversion will be terminated.
If a valid conversion has been performed, the value of "error" is
returned as zero. Otherwise, the position of the first "bad"
character is returned in "error" as a negative value.
input_buffer input ASCII buffer
start_index offset index into the ASCII buffer to begin conversion
starting at 1
num_chars number of ASCII characters to use
value returned value
error returned conversion status
(0 -> successful conversion,
<0 -> invalid character at this position)
This function requires the following include files:
ascii_to_numeric(_c), cvi, numeric_to_ascii(_c)
short start_index = 1;
short num_chars = NUM_CHARS;