|
|
1.1 ! root 1: /* ! 2: Hatari - file.h ! 3: ! 4: This file is distributed under the GNU Public License, version 2 or at ! 5: your option any later version. Read the file gpl.txt for details. ! 6: */ ! 7: ! 8: #ifndef HATARI_FILE_H ! 9: #define HATARI_FILE_H ! 10: ! 11: extern void File_CleanFileName(char *pszFileName); ! 12: extern void File_AddSlashToEndFileName(char *pszFileName); ! 13: extern bool File_DoesFileExtensionMatch(const char *pszFileName, const char *pszExtension); ! 14: extern const char *File_RemoveFileNameDrive(const char *pszFileName); ! 15: extern bool File_DirExists(const char *path); ! 16: extern bool File_DoesFileNameEndWithSlash(char *pszFileName); ! 17: extern Uint8 *File_Read(const char *pszFileName, long *pFileSize, const char * const ppszExts[]); ! 18: extern bool File_Save(const char *pszFileName, const Uint8 *pAddress, size_t Size, bool bQueryOverwrite); ! 19: extern off_t File_Length(const char *pszFileName); ! 20: extern bool File_Exists(const char *pszFileName); ! 21: extern bool File_DirectoryExists(const char *psDirName); ! 22: extern bool File_QueryOverwrite(const char *pszFileName); ! 23: extern char* File_FindPossibleExtFileName(const char *pszFileName,const char * const ppszExts[]); ! 24: extern void File_SplitPath(const char *pSrcFileName, char *pDir, char *pName, char *Ext); ! 25: extern char* File_MakePath(const char *pDir, const char *pName, const char *pExt); ! 26: extern void File_ShrinkName(char *pDestFileName, const char *pSrcFileName, int maxlen); ! 27: extern FILE *File_Open(const char *path, const char *mode); ! 28: extern FILE *File_Close(FILE *fp); ! 29: extern bool File_InputAvailable(FILE *fp); ! 30: extern void File_MakeAbsoluteSpecialName(char *pszFileName); ! 31: extern void File_MakeAbsoluteName(char *pszFileName); ! 32: extern void File_MakeValidPathName(char *pPathName); ! 33: extern void File_PathShorten(char *path, int dirs); ! 34: extern void File_HandleDotDirs(char *path); ! 35: ! 36: #endif /* HATARI_FILE_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.