home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / REND.LZH / PIC1600 / STRING.C < prev    next >
C/C++ Source or Header  |  1991-06-23  |  264b  |  17 lines

  1. #include    <stdio.h>
  2. #include    <string.h>
  3. #define        PICLIBMAIN
  4. #include    "piclib.h"
  5.  
  6. int        GetIdentifier(char *string, char *select[])
  7. {
  8.     int i;
  9.     for (i = 1; select[i] != NULL; ++i) {
  10.         if (!strcmp(select[i], string)) {
  11.             return i;
  12.         }
  13.     }
  14.     return 0;
  15. }
  16.  
  17.