ckcvh(input_buffer.i1a.r, start_index.i2.r, num_chars.i2.r, value.i2.r,
This routine will convert the number of hexadecimal characters
specified by "num_chars" from the user's byte buffer to an 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 hex ASCII buffer to convert to an integer value
start_index starting character in "buffer" to convert (starts at 1)
num_chars number of characters to convert
value returned integer value
[error] returned conversion status
(OK -> successful conversion,
<0 -> character position of first bad character)
This function requires the following include files:
ascii_to_numeric(_c), numeric_to_ascii(_c), ckcvi, ckcvg, cvh, cvdec,
ckcvd, ckcve, cvg
short start_index = 1;
short num_chars = NUM_CHARS;