Logo Search packages:      
Sourcecode: uaputl version File versions  Download package

unsigned int a2hex ( char *  s )

convert string to hex integer

Parameters:
sA pointer string buffer
Returns:
hex integer

Definition at line 283 of file uaputl.c.

References hexc2bin().

{
    unsigned int val = 0;
    if (!strncasecmp("0x", s, 2)) {
        s += 2;
    }
    while (*s && isxdigit(*s)) {
        val = (val << 4) + hexc2bin(*s++);
    }
    return val;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index