summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-25 14:20:05 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-25 14:20:05 +0200
commitd50f3cd388ebc2c8772d874aae0340489957fbcb (patch)
tree7e5bec7ba1f3c1ea010a5f7e544990ceaf830b6a /inc
parent44a0c7b2f92024120f4be376b5f0f44712a3670f (diff)
downloadabrt-d50f3cd388ebc2c8772d874aae0340489957fbcb.tar.gz
abrt-d50f3cd388ebc2c8772d874aae0340489957fbcb.tar.xz
abrt-d50f3cd388ebc2c8772d874aae0340489957fbcb.zip
firgot to "git add stdio_helpers.c"
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'inc')
-rw-r--r--inc/abrtlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h
index 41dcbc2d..f9796ada 100644
--- a/inc/abrtlib.h
+++ b/inc/abrtlib.h
@@ -92,6 +92,11 @@ char *append_to_malloced_string(char *mstr, const char *append);
char* skip_whitespace(const char *s);
char* skip_non_whitespace(const char *s);
+/* A-la fgets, but malloced and of unlimited size */
+char *xmalloc_fgets(FILE *file);
+/* Similar, but removes trailing \n */
+char *xmalloc_fgetline(FILE *file);
+
/* On error, copyfd_XX prints error messages and returns -1 */
enum {
COPYFD_SPARSE = 1 << 0,