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 / isbdigit.c < prev    next >
C/C++ Source or Header  |  1989-06-04  |  391b  |  21 lines

  1. /*
  2.  * edlib v1.1 Copyright 1989 Edwin Hoogerbeets
  3.  * This code is freely redistributable as long as no charge other than
  4.  * reasonable copying fees are levied for it.
  5.  */
  6.  
  7. /*
  8.     tests whether the given character could be a binary digit
  9. */
  10. #include <stdio.h>
  11.  
  12. int isbdigit(c)
  13. register char c;
  14. {
  15.     if ( c == '1' || c == '0' ) {
  16.         return(1);
  17.     } else {
  18.         return(NULL);
  19.     }
  20. }
  21.