pub fn plat_setprop(name: &str, value: &str) -> Result<(), String> {
    let cname = CString::new(name).unwrap();
    let cvalue = CString::new(value).unwrap();
    let ret = unsafe { __system_property_set(cname.as_ptr(), cvalue.as_ptr()) };
    if ret >= 0 {
        Ok(())
    } else {
        Err(format!("Failed to set Android property \"{}\" to \"{}\"", name, value))
    }
}
/// Set system property `name` to `value`, creating the system property if it doesn't already exist
Set system property `name` to `value`, creating the system property if it doesn't already exist
Set system property ` name ` to ` value ` creating the system property if it doesn ' t already exist
pub fn plat_setprop(name: &str, value: &str) -> Result<(), String> {
    let cname = CString::new(name).unwrap();
    let cvalue = CString::new(value).unwrap();
    let ret = unsafe { __system_property_set(cname.as_ptr(), cvalue.as_ptr()) };
    if ret >= 0 {
        Ok(())
    } else {
        Err(format!("Failed to set Android property \"{}\" to \"{}\"", name, value))
    }
}
pub fn plat_setprop ( name : & str , value : & str ) -> Result < ( ) , String > { let cname = CString :: new ( name ) . unwrap ( ) ; let cvalue = CString :: new ( value ) . unwrap ( ) ; let ret = unsafe { __system_property_set ( cname . as_ptr ( ) , cvalue . as_ptr ( ) ) } ; if ret >= 0 { Ok ( ( ) ) } else { Err ( format ! ( " \" \" \" \" " name value ) ) } }
Set system property `name` to `value`, creating the system property if it doesn't already exist
Set system property ` name ` to ` value ` creating the system property if it doesn ' t already exist
name
&str
value
&str