IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 


digittoint(3)

NAME

     digittoint -- convert a numeric character to its integer value


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <ctype.h>

     int
     digittoint(int c);


DESCRIPTION

     The digittoint() 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.


RETURN VALUES

     The digittoint() 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)

FreeBSD 5.4			 April 6, 2001			   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk