home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
c
/
cops_104.zip
/
cops_104
/
src
/
clearfiles.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-10
|
702b
|
46 lines
/* Copyright 1985 Robert W. Baldwin */
/* Copyright 1986 Robert W. Baldwin */
static char *notice85 = "Copyright 1985 Robert W. Baldwin";
static char *notice86 = "Copyright 1986 Robert W. Baldwin";
/*
* Reset the info files used by Kuang.
*/
#include <stdio.h>
char *filelist[] = {
"uids.k",
"Success",
"uids.k",
"uids.p",
"uids.n",
"uids.x",
"gids.k",
"gids.p",
"gids.n",
"gids.x",
"files.k",
"files.p",
"files.n",
"files.x",
"",
};
main(argc, argv)
int argc;
char *argv[];
{
int i;
for (i = 0 ; filelist[i][0] != NULL ; i++) {
if (freopen(filelist[i], "w", stdout) == NULL) {
fprintf(stderr, "%s: can't open %s.\n",
argv[0], filelist[i]);
exit(1);
}
}
}