Function rustrt::c_str::from_c_multistring[src]

pub unsafe fn from_c_multistring(buf: *c_char, count: Option<uint>, f: |&CString|) -> uint

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.