home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff218.lzh
/
EdLib
/
man
/
ToInt
< prev
Wrap
Text File
|
1989-06-04
|
622b
|
30 lines
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