Function gnunet_sys::GNUNET_BIO_read_string [−][src]
pub unsafe extern "C" fn GNUNET_BIO_read_string(
h: *mut GNUNET_BIO_ReadHandle,
what: *const c_char,
result: *mut *mut c_char,
max_length: usize
) -> c_int
Read 0-terminated string.
@param h the IO handle to read from @param what describes what is being read (for error message creation) @param result where to store the pointer to the (allocated) string (note that *result could be set to NULL as well) @param max_length maximum allowed length for the string @return #GNUNET_OK on success, #GNUNET_SYSERR on failure