home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
OS2LYN_1
/
LCP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-12
|
600b
|
25 lines
/* This is an extremely simple and silly substitute for cp(1) for
OS/2 systems without the GNU Fileutils installed. It does not even
try to act like a complete 'cp'. */
#include <stdio.h>
#include <os2.h>
#define INCL_DOSFILEMGR
int main(int argc, char* argv[])
{
APIRET rc;
if (argc != 3)
{
fprintf(stderr, "lcp is a stupid program that only copies one
file to some file or directory, so only give
it (exactly) two arguments, please.\n");
return 2;
}
else
{
rc = DosCopy(argv[1], argv[2], DCPY_EXISTING);
return rc;
}
}