pub unsafe extern "C" fn ruby_strdup(
str_: *const c_char,
) -> *mut c_charExpand description
This is our own version of strdup(3) that uses ruby_xmalloc() instead of
system malloc (benefits our GC).
ยง@param[in] str Target C string to duplicate. @return An allocated C string holding the identical contents. @note Return value must be discarded using ruby_xfree().
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8