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