home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
copee.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
576b
|
27 lines
/*--------------------------------------*/
/* */
/* COPEE(X,X) */
/* */
/* Copies the file given in the first */
/* argument to the file given in the */
/* second argument. If there is a */
/* problem with the copying, a -1 is */
/* returned. Otherwise, a zero is */
/* returned. */
/* */
/*--------------------------------------*/
# include "stdlib.h"
copee(a,b)
char *a,*b;
{
char r[80],s[80];
int d;
putstring("copy ",r,80);
r[5]=0;
stradd(r,a,s);
stradd(s," ",r);
stradd(r,b,s);
d=system(s);
return(d);
}