GnuCash  5.6-150-g038405b370+
file-utils.h
Go to the documentation of this file.
1 /********************************************************************\
2  * file-utils.h -- simple file utilities *
3  * Copyright (C) 1997 Robin D. Clark *
4  * Copyright (C) 1998 Linas Vepstas *
5  * Copyright (C) 1998 Rob Browning *
6  * Copyright (C) 2004 Derek Atkins <derek@ihtfp.com> *
7  * *
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU General Public License as *
10  * published by the Free Software Foundation; either version 2 of *
11  * the License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License*
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * Author: Rob Clark *
23  * Internet: rclark@cs.hmc.edu *
24  * Address: 609 8th Street *
25  * Huntington Beach, CA 92648-4632 *
26 \********************************************************************/
27 
43 #ifndef GNC_FILE_UTILS_H
44 #define GNC_FILE_UTILS_H
45 
46 #include <stdio.h> /* for FILE* */
47 
62 int gncReadFile (const char * filename, char ** data);
63 
64 
77 gint64 gnc_getline (gchar **line, FILE *file);
78 
79 #endif /* GNC_FILE_UTILS_H */
80 
gint64 gnc_getline(gchar **line, FILE *file)
Read a line from the input file, up to and including the newline.
Definition: file-utils.c:133
int gncReadFile(const char *filename, char **data)
Reads the contents of a file into a buffer for further processing.
Definition: file-utils.c:61