home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cnews / part01 / libc / strings / bcmp.c next >
Encoding:
Text File  |  1987-10-19  |  243 b   |  13 lines

  1. /*
  2.  - bcmp - Berklix equivalent of memcmp
  3.  */
  4.  
  5. int                /* == 0 or != 0 for equality and inequality */
  6. bcmp(s1, s2, length)
  7. CONST char *s1;
  8. CONST char *s2;    
  9. int length;
  10. {
  11.     return(memcmp((CONST VOIDSTAR)s1, (CONST VOIDSTAR)s2, (SIZET)length));
  12. }
  13.