atoi8

Name

atoi8 -- converts string to integer

Synopsis

#include <stdlib.h>

unsigned int atoi8(char * str);

Description

This function converts a null-terminated ASCII string representing a signed number to a signed int value.

The string should be in one of the following forms:

Table 1. Input strings

"-0b10000000" to "0b11111111"binary
"-0o200" to "0o377"octal
"-0200" to "0377"octal
"-128" to "255"decimal
"-0x80" to "0xFF"hexadecimal

See Also

ahtoi8, ahtoi16, atoi16, stdlib

Examples

Converting ASCII strings to integer