Manual Pages for UNIX Darwin command on man digittoint
MyWebUniversity

Manual Pages for UNIX Darwin command on man digittoint

DIGITTOINT(3) BSD Library Functions Manual DIGITTOINT(3)

NAME

ddiiggiittttooiinntt, ddiiggiittttooiinnttll - convert a numeric character to its integer

value LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

int ddiiggiittttooiinntt(int c);

##iinncclluuddee <>

int ddiiggiittttooiinnttll(int c, localet loc);

DESCRIPTION

The ddiiggiittttooiinntt() function converts a numeric character to its correspond-

ing integer value. The character can be any decimal digit or hexadecimal

digit. With hexadecimal characters, the case of the values does not mat-

ter. While the ddiiggiittttooiinntt() function uses the current locale, the ddiiggiittttooiinnttll() function may be passed a locale directly. See xlocale(3) for more information.

RETURN VALUES

The ddiiggiittttooiinntt() function always returns an integer from the range of 0 to 15. If the given character was not a digit as defined by isxdigit(3), the function will return 0.

SEE ALSO

ctype(3), isdigit(3), isxdigit(3), xlocale(3) BSD April 6, 2001 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™