atoi16

Name

atoi16 -- converts string to integer

Synopsis

#include <stdlib.h>

unsigned long atoi16(char * str);

Description

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

The string should be in one of the following forms:

Table 1. Input strings

"-0b1000000000000000" to "0b1111111111111111"binary
"-0o100000" to "0o17777"octal
"-0100000" to "0177777"octal
"-32768" to "65535"decimal
"-0x8000" to "0xffff"hexadecimal

See Also

ahtoi8, ahtoi16, atoi8, stdlib

Examples

Converting ASCII strings to integer