home *** CD-ROM | disk | FTP | other *** search
- HEXTOINT(3) Library Functions HEXTOINT(3)
-
-
-
- NAME
- hextoint - give the decimal value of a string of decimal digits
-
- SYNOPSIS
- #include <edlib.h>
-
- int hextoint(number)
- char *number;
-
- DESCRIPTION
- Hextoint takes a string that may have been read in with scanf(3)
- or from the console, and treats it as if it were a hexadecimal
- number. The integer value of the hexadecimal number is returned.
- Hextoint stops at the first character that is not a hexadecimal
- digit. If the first character in the string is not a hexadecimal
- digit, then a value of 0 is returned.
-
- AUTHOR
- Edwin Hoogerbeets 01/08/88
-
- SEE ALSO
- bintoint(3), dectoint(3), toint(3)
-
-
-
-