home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TASMSWAN.ZIP / COPYSTR.C < prev    next >
Text File  |  1989-07-17  |  465b  |  19 lines

  1. /******************************************************************
  2. copystr.c
  3.     demos external function
  4. ********/
  5.  
  6. #include <stdio.h>
  7.  
  8. extern void copystring(unsigned char far * source, unsigned char far * destination, int sourcelen);
  9.  
  10. char *source = 'Source';
  11. char *destination = 'Destination';
  12.  
  13. main()
  14. {
  15.     printf("Before destination: %s\n", destination);
  16.     copystring( source, destination, 6 );
  17.     printf("After destination : %s\n", destination);
  18. }
  19.