.\" (C) 2002 Ian Gulliver .TH firestring_hextoi 3 2002-09-21 .SH NAME firestring_hextoi \- return a numerical value for a 2 digit hex string .SH SYNOPSIS .B #include .br .B -lfirestring .LP .BI "int firestring_hextoi(char *" "input" ")" .SH DESCRIPTION firestring_hextoi takes a string .I s with the first two characters as hex digits and converts the value to a integer. .SH RETURN VALUE Returns the hex value between 0 and 255 (inclusive), or -1 if the first two characters of .I s are not valid hex digits. .SH AUTHOR Ian Gulliver .SH SEE ALSO .BR libfirestring (3)