home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
MN325SRC.ZIP
/
makenl-3.2.5
/
src
/
osdosfnd.c
< prev
next >
Wrap
C/C++ Source or Header
|
2005-02-06
|
731b
|
37 lines
/* $Id: osdosfnd.c,v 1.3 2004/07/17 03:05:06 ozzmosis Exp $ */
#include <dos.h>
#include "unused.h"
char *os_findfirst(struct _filefind *pff, const char *path,
const char *mask)
{
int rc;
char tmp[MAXPATH];
strcpy(tmp, path);
os_append_slash(tmp);
strcat(tmp, mask);
rc = findfirst(tmp, &pff->fileinfo,
FA_RDONLY | FA_HIDDEN | FA_SYSTEM | FA_ARCH);
if (rc == 0)
return pff->fileinfo.ff_name;
return NULL;
}
char *os_findnext(struct _filefind *pff)
{
if (findnext(&pff->fileinfo) == 0)
return pff->fileinfo.ff_name;
return NULL;
}
void os_findclose(struct _filefind *pff)
{
unused(pff);
}