1 /* $Id: fileUtils.h,v 1.10 2003/04/03 19:05:37 jlous Exp $ */
3 #ifndef NEDIT_FILEUTILS_H_INCLUDED
4 #define NEDIT_FILEUTILS_H_INCLUDED
6 enum fileFormats
{UNIX_FILE_FORMAT
, DOS_FILE_FORMAT
, MAC_FILE_FORMAT
};
8 int ParseFilename(const char *fullname
, char *filename
, char *pathname
);
9 int ExpandTilde(char *pathname
);
10 const char* GetTrailingPathComponents(const char* path
,
12 int NormalizePathname(char *pathname
);
13 int CompressPathname(char *pathname
);
14 int ResolvePath(const char * pathIn
, char * pathResolved
);
16 int FormatOfFile(const char *fileString
);
17 void ConvertFromDosFileString(char *inString
, int *length
,
19 void ConvertFromMacFileString(char *fileString
, int length
);
20 int ConvertToDosFileString(char **fileString
, int *length
);
21 void ConvertToMacFileString(char *fileString
, int length
);
22 char *ReadAnyTextFile(const char *fileName
);
24 #endif /* NEDIT_FILEUTILS_H_INCLUDED */