[Previous]
[Contents]
[Next]

qnx_display_hex()

print a hexadecimal number

Synopsis:

#include <unistd.h>
void qnx_display_hex( unsigned value );

Description:

The qnx_display_hex() function prints value to the screen of your physical console, formatted as %04x .


Note: This routine is for use ONLY by programs such as FSYS or device drivers that don't have access to the standard output and standard error facilities.

Examples:

#include <unistd.h>

void main( int argc, char **argv )
  {
    register int i;

    qnx_display_msg( argv[0] );
    qnx_display_msg( " " );
    for( i = 1; i < argc; ++i )
      qnx_display_hex( atoh( argv[i] ) );
    qnx_display_msg( "\n" );
  }

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

qnx_display_msg()


[Previous]
[Contents]
[Next]