C-chat
files.h
Go to the documentation of this file.
1 
6 #ifndef C_CHAT_FILES_H
7 #define C_CHAT_FILES_H
8 
13 typedef struct FileInfo {
15  int exists;
19  long long size;
20 } FileInfo;
21 
28 FileInfo files_getInfo(const char* filename);
29 
44 unsigned long files_readFile(const char* filename, char* contentBuffer, unsigned long bufferSize);
45 
60 unsigned long files_writeFile(const char* filename, const char* contentBuffer, unsigned long bufferSize);
61 
62 #endif //C_CHAT_FILES_H
FileInfo::exists
int exists
Definition: files.h:15
FileInfo
A class containing information about a file.
Definition: files.h:13
FileInfo::isDirectory
int isDirectory
Definition: files.h:17
files_getInfo
FileInfo files_getInfo(const char *filename)
Retrieves information about the file with the given name.
files_readFile
unsigned long files_readFile(const char *filename, char *contentBuffer, unsigned long bufferSize)
Reads the given file.
files_writeFile
unsigned long files_writeFile(const char *filename, const char *contentBuffer, unsigned long bufferSize)
Writes the given file.
FileInfo::size
long long size
Definition: files.h:19