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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat161.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <string.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8.  {
  9.   char *s = "FoxPro 2.0 For Window";
  10.   char *poisition, c = '2';
  11.  
  12.   poisition = strchr(s, c);
  13.   if(poisition)
  14.     printf("ªrñ╕ '%c' ▓─ñ@ª╕ÑX▓{⌐≤ªrªΩ '%s' ñññºª∞╕m¼░: %d\n",c,s,poisition-s);
  15.   else
  16.     printf("╡L¬k⌐≤ªrªΩ '%s' ññºΣ¿∞ªrñ╕ '%c' \n",s,c);
  17.  }
  18.