
#ifndef DOSFILE_H
#define DOSFILE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <time.h>

struct finddata_t        /* file info block for the al_find*() routines */
{
   int attrib;         /* actual attributes of the file found */
   time_t time;        /* modification time of file */
   long size;          /* size of file */
   char name[512];     /* name of file */
   void *ff_data;      /* private hook */
};

#define FA_DONTCARE     -1 // Use this when you want any old file
#define FA_RDONLY       1
#define FA_HIDDEN       2
#define FA_SYSTEM       4
#define FA_LABEL        8
#define FA_DIREC        16
#define FA_ARCH         32



// Function definitions
char* strupr( const char* a );
char* strlwr( const char* a );


void findclose(struct finddata_t *info);
int findnext(struct finddata_t *info);
int findfirst(const char *pattern, struct finddata_t *info, int attrib);
int stricmp(const char *s1, const char *s2);
int strnicmp(const char *s1, const char *s2, size_t len);

void psplit(char *path, char *drv, char *dir, char *fname, char *ext);

void DeleteFile( const char* name );

int CreateDirectory( const char* dir );
time_t getFileTime(const char *filename);
int getAttrib( const char *name );

#ifdef __cplusplus
}
#endif


#endif //DOSFILE_H
