hex_to_long

Description

Convert ASCII hex string to equivalent 16 bit binary integer value Only the first 4 characters of the string are interpreted

Definition

long hex_to_long(char *ptr)

Library

LIB/str_long_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