From fdaf1c65cdcba2d9b83e02cc0d08fb6dbbd80a80 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 13 Jul 2011 21:27:34 +0200 Subject: Add a new function, bool rc_getfile(const char *, char **, size_t *) Read the entire @file into the buffer and set @len to the size of the buffer when finished. For C strings, this will be strlen(buffer) + 1. Don't forget to free the buffer afterwards! We also fix bug 374899 by adding this new function. X-Gentoo-Bug: 374899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/374899 --- src/librc/librc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/librc/librc.h') diff --git a/src/librc/librc.h b/src/librc/librc.h index 43b0157..876c047 100644 --- a/src/librc/librc.h +++ b/src/librc/librc.h @@ -84,6 +84,7 @@ librc_hidden_proto(rc_deptree_order) librc_hidden_proto(rc_deptree_update) librc_hidden_proto(rc_deptree_update_needed) librc_hidden_proto(rc_find_pids) +librc_hidden_proto(rc_getfile) librc_hidden_proto(rc_getline) librc_hidden_proto(rc_newer_than) librc_hidden_proto(rc_older_than) -- cgit v1.2.3