add uc_read_fd function

This commit is contained in:
Nils O. Selåsdal
2014-03-13 23:16:50 +01:00
parent 092074bbfc
commit b93e5b6d5b
2 changed files with 21 additions and 5 deletions
+8
View File
@@ -21,6 +21,14 @@ extern "C" {
char *
uc_read_file(const char *file_name, size_t *length, size_t max);
/** Read the content of a file descriptor as a stream.
* @see uc_read_file
* This is similar but reads from a file descriptor,
* of any type as long as it supports the read() call.
*/
char *
uc_read_fd(int fd, size_t *length, size_t max);
#ifdef __cplusplus
}
#endif