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