[Previous]
[Contents]
[Next]

atoh()

convert a string to unsigned representation

Synopsis:

unsigned atoh( const char *ptr );

Description:

The atoh() function converts the string pointed to by ptr to unsigned representation, assuming the string contains a hexadecimal (base 16) number.

Returns:

The converted value.

Examples:

#include <stdlib.h>
#include <stdio.h>

int main( void )
  {
    unsigned x;

    x = atoh( "F1A6" );
    printf( "number is %x\n", x );
    return (EXIT_SUCCESS);
  }

Classification:

QNX

Safety:
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

sscanf()


[Previous]
[Contents]
[Next]