home *** CD-ROM | disk | FTP | other *** search
- TOINT(3) Library Functions TOINT(3)
-
-
-
- NAME
- toint - return the integer value of a character digit
-
- SYNOPSIS
- #include <edlib.h>
-
- int toint(c)
- char c;
-
- DESCRIPTION
- Toint treats the character 'c' as a hexadecimal character and
- returns its integer equivalent. Note that this routine may be
- used for decimal, octal and binary digits, as these are proper
- subsets of the hexadecimal character set.
-
- DIAGNOSTICS
- If the given character does not represent a hexadecimal digit a
- value of -1 is returned.
-
- AUTHOR
- Edwin Hoogerbeets 01/08/88
-
-
-
-
-