wavelength 1.0.0
Loading...
Searching...
No Matches
fileutil.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
18const char *FileRoot();
19
32const char *FileNormalizePath(const char *pszPath);
33
47const char *FileRelativePath(const char *pszPath, const char *pszBase);
48
60bool FileIsAbsolute(const char *pszPath);
61
73const char *FileGetPath(const char *pszPath);
74
86const char *FileGetExt(const char *pszPath);
87
96const char *FileGetBaseName(const char *pszPath);
97
108int FileTableRead(int nDescriptor, void *pBuffer, int nBytes);
109
110#ifdef __cplusplus
111}
112#endif
const char * FileGetBaseName(const char *pszPath)
Report the file name of a path without its directory and its extension.
const char * FileNormalizePath(const char *pszPath)
Normalise a path.
const char * FileRelativePath(const char *pszPath, const char *pszBase)
Express a path relative to a base directory.
const char * FileGetExt(const char *pszPath)
Report the extension of a path.
const char * FileGetPath(const char *pszPath)
Report the directory part of a path.
int FileTableRead(int nDescriptor, void *pBuffer, int nBytes)
Read bytes from a file of gFileTable.
const char * FileRoot()
Report the directory the game's files are read from, .
bool FileIsAbsolute(const char *pszPath)
Report whether a path is absolute.