Skip to main content

get_malloc_symbol

Function get_malloc_symbol 

Source
pub fn get_malloc_symbol(target_os: TargetOperatingSystem) -> &'static str
Expand description

Helper function to get the platform-specific malloc symbol name.

Returns “_malloc” on macOS, “malloc” on other platforms.