firestring_hextoi(3)

firestring_hextoi3

Return a numerical value for a 2 digit hex string

Usage

#include <firestring.h>
-lfirestring

int firestring_hextoi(char *input)

Overview

firestring_hextoi takes a string s with the first two characters as hex digits and converts the value to a integer.

Return value

Returns the hex value between 0 and 255 (inclusive), or -1 if the first two characters of s are not valid hex digits.

Releases

Unchanged in 6 releases since Debian 3.1 (Sarge).

  1. 3.1–8

Author

Ian Gulliver <[email protected]>

From libfirestring-dev 0.9.12-8 in Debian 8 (Jessie). Parsed by carta from the page's man source.