GnuCash
5.6-150-g038405b370+
|
Files | |
file | file-utils.h |
Utility functions for file access. | |
Functions | |
int | gncReadFile (const char *filename, char **data) |
Reads the contents of a file into a buffer for further processing. More... | |
gint64 | gnc_getline (gchar **line, FILE *file) |
Read a line from the input file, up to and including the newline. More... | |
gint64 gnc_getline | ( | gchar ** | line, |
FILE * | file | ||
) |
Read a line from the input file, up to and including the newline.
The caller MUST g_free() the line returned from this call in all cases where it is non-NULL!
line | pointer to hold the buffer for the whole line (allocated by this function) |
file | the file from which to read |
Definition at line 133 of file file-utils.c.
int gncReadFile | ( | const char * | filename, |
char ** | data | ||
) |
Reads the contents of a file into a buffer for further processing.
If the filename is not an absolute filename, it will be searched for in the search path available to the program. This can be used to find for example help files,...
Uses the global xxxPath as the path to search
filename | the name of the html file to read |
data | Pointer to a buffer to store the file's content. |
Definition at line 61 of file file-utils.c.