home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
networking
/
uucp
/
amigauucpsrc
/
dnews
/
filereq.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-29
|
551b
|
31 lines
/*
* FILEREQ.C
*/
#include "defs.h"
Prototype char *GetFileName(int);
char FileName[4][128];
char DirName[4][128];
char *ReqType[] = { "Write To File", "" };
char CombName[128];
char *
GetFileName(which)
int which;
{
if (arpreq(ReqType[which], FileName[which], DirName[which], NULL)) {
short len = strlen(DirName[which]);
strcpy(CombName, DirName[which]);
if (len && CombName[len-1] != '/' && CombName[len-1] != ':')
strcat(CombName+len, "/");
strcat(CombName+len, FileName[which]);
return(CombName);
}
return(NULL);
}