CCL Home Page
Up Directory CCL cp_file
#include "utility.h"

void cp_file(source_file_name,target)
/*============================================================================*/
/* PURPOSE: DO A UNIX "CP SOURCE_FILE_NAME TARGET" COMMAND.
/* WRITTEN: M.V.GRIESHABER
/* LAST MODIFICATION: 11 JUNE 1991 MVG
*/
   char source_file_name[];	/* SOURCE FILE TO BE COPIED. */
   char target[];		/* TARGET (FILE OR DIRECTORY). */
   {
   char command[1000];		/* UNIX COMMAND. */

   sprintf(command,"cp %s %s",source_file_name,target);
   system(command);

   return;
   }
Modified: Fri Feb 11 17:00:00 1994 GMT
Page accessed 5081 times since Sat Apr 17 21:58:52 1999 GMT