Skip to main content

cc_language_from_path

Function cc_language_from_path 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cc_language_from_path( path: *const c_char, ) -> i32
Expand description

Guesses the language from a file path. Returns -1 if unknown.

ยงSafety

path must be null or a NUL terminated string.