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.

macOS uses “_malloc”; Linux, BSD, Windows use “malloc”.