home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / lib / util / lexequ.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-02-01  |  489 b   |  22 lines

  1. #include "util.h"
  2.  
  3. /*                                                                      */
  4. /*      Determine if the two given strings are equivalent.              */
  5. /*                                                                      */
  6.  
  7. lexequ (str1, str2)
  8. register char   *str1,
  9.         *str2;
  10. {
  11.     extern char chrcnv[];
  12.  
  13.     if(str1 == 0 || str2 == 0)
  14.     return (str1 == str2);
  15.  
  16.     while (chrcnv[*str1] == chrcnv[*str2++])
  17.     if (*str1++ == 0)
  18.         return (TRUE);
  19.  
  20.     return (FALSE);
  21. }
  22.