Function std::c_str::from_c_multistringUnstable
[-]
[+]
[src]
pub unsafe fn from_c_multistring<F>(buf: *const c_char, count: Option<uint>, f: F) -> uint where F: FnMut(&CString)
Parses a C "multistring", eg windows env values or the req->ptr result in a uv_fs_readdir() call.
Optionally, a count
can be passed in, limiting the
parsing to only being done count
-times.
The specified closure is invoked with each string that is found, and the number of strings found is returned.