digittoint man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

DIGITTOINT(3)		 BSD Library Functions Manual		 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)

BSD				 April 6, 2001				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net