pub unsafe fn from_byond_args(n: c_int, v: *const *const c_char) -> Vec<String> {
    let mut args = Vec::new();
    let slice = slice::from_raw_parts(v, n as usize);
    for ptr in slice {
        let cstr = CStr::from_ptr(*ptr);
        let string = String::from_utf8_lossy(cstr.to_bytes()).into_owned();
        args.push(string);
    }
    args
}
/// Turns the arguments supplied by BYOND into a more workable vector.
///
/// All strings are converted into UTF-8 losilly. You've been warned.
Turns the arguments supplied by BYOND into a more workable vector.
All strings are converted into UTF-8 losilly. You've been warned.
Turns the arguments supplied by BYOND into a more workable vector . All strings are converted into UTF - 8 losilly . You ' ve been warned .
pub unsafe fn from_byond_args(n: c_int, v: *const *const c_char) -> Vec<String> {
    let mut args = Vec::new();
    let slice = slice::from_raw_parts(v, n as usize);
    for ptr in slice {
        let cstr = CStr::from_ptr(*ptr);
        let string = String::from_utf8_lossy(cstr.to_bytes()).into_owned();
        args.push(string);
    }
    args
}
pub unsafe fn from_byond_args ( n : c_int , v : * const * const c_char ) -> Vec < String > { let mut args = Vec :: new ( ) ; let slice = slice :: from_raw_parts ( v , n as usize ) ; for ptr in slice { let cstr = CStr :: from_ptr ( * ptr ) ; let string = String :: from_utf8_lossy ( cstr . to_bytes ( ) ) . into_owned ( ) ; args . push ( string ) ; } args }
Turns the arguments supplied by BYOND into a more workable vector.
Turns the arguments supplied by BYOND into a more workable vector .
n
c_int
v
*const *const c_char
n
c_int
v
*const *const c_char