| 123456789101112131415161718192021222324 |
- #ifndef __FILE_Hx__
- #define __FILE_Hx__
- #include <stdlib.h>
- #include <stdio.h>
- typedef struct {
- char *buf;
- int dlen;
- int blen;
- }buf_t;
- int file_length(char* path);
- int file_exist(char* path);
- int file_save(char *path, void *buf, int len);
- int file_load(char* path, buf_t *buf);
- char* file_load2(char* path, int add0);
- int file_copy(char *dst, char *src);
- int file_remove(char *path);
- int file_append(char *path, void *data, int datalen);
- #endif
|