hex_str_to_int

Description

Convert ASCII hex string to equivalent 16 bit binary integer value the string must be NUL terminated and only the least significand 16 bits of the result are retained

Definition

int hex_str_to_int(char *ptr)

Library

LIB/str_int_lib.bas

Usage

On entry:
ptr is a pointer to a RAM buffer holding the string to be converted
On exit:
The return value is in the range 0 to 0xffff