libtools
Main Page
Modules
Classes
Files
File List
File Members
tools
file.h
Go to the documentation of this file.
1
20
#ifndef __TOOLS_FILE_H
21
#define __TOOLS_FILE_H
22
23
#include <stddef.h>
24
39
int
put_file_contents
(
const
char
*path,
const
void
*buf,
size_t
len);
40
49
void
*
get_file_contents
(
const
char
*path,
void
**buf,
size_t
*len);
50
53
#endif
/* __TOOLS_FILE_H */
put_file_contents
int put_file_contents(const char *path, const void *buf, size_t len)
save data to file
get_file_contents
void * get_file_contents(const char *path, void **buf, size_t *len)
allocate memory and read data from file
Generated by
1.8.11