:man| Alphabetical   Categories   About us 
 
DIGITTOINT (3) | C library functions | Unix Manual Pages | :man

NAME

digittoint - convert a numeric character to its integer value

CONTENTS

Library
Synopsis
Description
Return Values
See Also

LIBRARY


.Lb libc

SYNOPSIS


.In ctype.h int digittoint "int c"

DESCRIPTION

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

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)


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013