unsafe fn gather_string(ptr: *const c_char) -> String {
  let len = SDL_strlen(ptr);
  let useful_bytes = from_raw_parts(ptr as *const u8, len);
  String::from_utf8_lossy(useful_bytes).into_owned()
}
/// Grabs up the data from a null terminated string pointer.
Grabs up the data from a null terminated string pointer.
Grabs up the data from a null terminated string pointer .
unsafe fn gather_string(ptr: *const c_char) -> String {
  let len = SDL_strlen(ptr);
  let useful_bytes = from_raw_parts(ptr as *const u8, len);
  String::from_utf8_lossy(useful_bytes).into_owned()
}
unsafe fn gather_string ( ptr : * const c_char ) -> String { let len = SDL_strlen ( ptr ) ; let useful_bytes = from_raw_parts ( ptr as * const u8 , len ) ; String :: from_utf8_lossy ( useful_bytes ) . into_owned ( ) }
Grabs up the data from a null terminated string pointer.
Grabs up the data from a null terminated string pointer .
ptr
*const c_char
ptr
*const c_char