home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT122.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-08  |  551 b   |  19 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat122.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <string.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8. {
  9.    char str[80];
  10.    char *where;
  11.  
  12.    strcpy(str, "FoxPro 2.0 Programmer's Guide--Basic:By Alex-Jang");
  13.    where = memchr(str, 'G', strlen(str));
  14.    if (where)
  15.       printf("ªrñ╕ 'G' ª∞⌐≤ª∞╕m %d ñW\n", where - str + 1);
  16.    else
  17.       printf("ºΣñú¿∞½ⁿ⌐wñºªrñ╕\n");
  18. }
  19.