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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat124.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <string.h>
  6.  
  7. void main()
  8. {
  9.    char *src = "FoxPro 2.0 ╡{ªí│]¡p--╢i╢Ñ╜g";
  10.    char *dst = "FoxPro 2.0 ╡{ªí│]¡p--ñJ¬∙╜g (│╣Ñ▀Ñ┴½ⁿ╛╔)";
  11.    char *where;
  12.  
  13.    printf("░⌡ªµ memcpy() ½e src ⌐╥½ⁿñº╜w╜─░╧ñº╕Ω«╞:%s\n", dst);
  14.    where = memcpy(dst, src, strlen(src));
  15.    if (where)
  16.       printf("░⌡ªµ memcpy() ½ß src ⌐╥½ⁿñº╜w╜─░╧ñº╕Ω«╞:%s\n", dst);
  17.    else
  18.       printf("memcpy() ░⌡ªµÑó▒╤\n");
  19. }
  20.