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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat121.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <string.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8. {
  9.    char *src = "FoxPro For Window is coming to us this year. Say Yeah!";
  10.    char dest[80];
  11.    char *pointers;
  12.  
  13.    pointers = memccpy(dest, src, '!', strlen(src));
  14.  
  15.    if (pointers)
  16.    {
  17.       *pointers = '\0';
  18.       printf("ª╣ªrñ╕ñwºΣ¿∞ :  %s\n", dest);
  19.    }
  20.    else
  21.       printf("ºΣñú¿∞ª╣ªrñ╕\n");
  22. }
  23.