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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat176.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <string.h>
  6.  
  7. void main()
  8. {
  9.    char *string1 = "Window 3.1";
  10.    char *string2 = "Super Woman";
  11.    char *ptr;
  12.  
  13.    ptr = strpbrk(string1, string2);
  14.  
  15.    if (ptr)
  16.       printf(" \"%s\" ªb \"%s\" ññÑX▓{¬║▓─ñ@¡╙ªr¼O \'%c\' \n",
  17.              string1, string2, *ptr);
  18.    else
  19.       printf(" \"%s\" ¿Sª│ªb \"%s\" ññÑX▓{Ñ⌠ª≤ªr\n",
  20.              string1, string2);
  21. }
  22.  
  23.  
  24.