Add a new function, bool rc_getfile(const char *, char **, size_t *)

<snip>
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!
</snip>

We also fix bug 374899 by adding this new function.

X-Gentoo-Bug: 374899
X-Gentoo-Bug-URL: http://bugs.gentoo.org/374899
This commit is contained in:
Mike Frysinger
2011-07-13 21:27:34 +02:00
committed by Christian Ruppert
parent ef22868f36
commit fdaf1c65cd
5 changed files with 55 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ global:
rc_deptree_update_needed;
rc_environ_fd;
rc_find_pids;
rc_getfile;
rc_getline;
rc_newer_than;
rc_older_than;