2015-04-20 07:55:49 +02:00
|
|
|
#ifndef __CW_FILE_H
|
|
|
|
#define __CW_FILE_H
|
|
|
|
|
2015-10-18 10:44:10 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2015-05-04 07:28:21 +02:00
|
|
|
/**
|
|
|
|
*@defgroup FileFunctions File Functions
|
|
|
|
*@{
|
|
|
|
*/
|
|
|
|
|
2015-04-20 07:55:49 +02:00
|
|
|
char *cw_load_file(const char *filename,size_t *size);
|
|
|
|
int cw_save_file(const char *filename, char *data,int len);
|
2018-02-26 11:33:24 +01:00
|
|
|
char * cw_filename(const char * path, const char * name, const char * ext);
|
|
|
|
|
|
|
|
#define CW_FILE_PATH_DELIMITERS "/"
|
2015-04-20 07:55:49 +02:00
|
|
|
|
2015-05-04 07:28:21 +02:00
|
|
|
/**@}*/
|
2015-04-20 07:55:49 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|