blob: 0b8086ce64dde60f5dcac0b08c799e7acbd35ad7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// Sample file copy rountines using the decompress API
//
// (C) Copyright 1989 by Microsoft
// Written By Steven Zeck
//
//////////////////////////////////////////////////////////////////////////
#include "crtapi.h"
#define szPut(sz) RpcWrite(1, sz, sizeof(sz));
main(
int argc,
char *argv[]
)
{
if (argc != 3) {
szPut("fcopy inputFile outputFile\n");
return(1);
}
copyFile(argv[1], argv[2]);
}
// Sample user supplied routines to handle user interface //
void terminate( // signal fatel I/O error and die
char *p // reason
)//-----------------------------------------------------------------------//
{
szPut("Fatel Error: ");
RpcWrite(1, p, strlen(p));
szPut("\n");
exit(1);
}
pascal changedisk ( // ask the user to change the disk of a mult volume file
char *pFname // file name to prompt for
)//-----------------------------------------------------------------------//
{
szPut("Insert next disk, copying file: ");
RpcWrite(1, pFname, strlen(pFname));
RpcGetch();
return(1);
}
|