*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> digittoint (3)              
Title
Content
Arch
Section
 

DIGITTOINT(3)

Contents


NAME    [Toc]    [Back]

     digittoint -- convert a numeric character to its integer value

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <ctype.h>

     int
     digittoint(int c);

DESCRIPTION    [Toc]    [Back]

     The digittoint() function converts a numeric character to its corresponding
 integer value.  The character can be any decimal digit or hexadecimal
     digit.  With hexadecimal characters, the case of the values does not matter.

RETURN VALUES    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     isalnum(3), isalpha(3), isascii(3), iscntrl(3), isdigit(3), isgraph(3),
     islower(3), isprint(3), ispunct(3), isspace(3), isupper(3), isxdigit(3),
     stdio(3), tolower(3), toupper(3), ascii(7)


FreeBSD 5.2.1			 April 6, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
wcstol Tru64 Convert a wide-character string to long integer
atoi Tru64 Convert a character string to the specified integer data type
atol Tru64 Convert a character string to the specified integer data type
strtol Tru64 Convert a character string to the specified integer data type
strtoul Tru64 Convert a character string to the specified integer data type
wcstoul Tru64 Convert wide-character strings to unsigned long integer
wcstol IRIX convert wide character string to long integer, unsigned long integer, long long integer, unsigned long long in
huge IRIX Returns the largest number in the integer or real numeric model
inet_pton Tru64 Convert a text string to a numeric address
inet_ntop Tru64 Convert a numeric address to a text string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service