Skip to main content

get_printf_symbol

Function get_printf_symbol 

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

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

macOS uses leading underscore (“_printf”); Linux, BSD, and Windows use “printf”. Cross-compilation: pass the target OS, not the host.