Skip to main content

nl_langinfo_l

Function nl_langinfo_l 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nl_langinfo_l( item: nl_item, _loc: locale_t, ) -> *mut c_char
Expand description

See https://pubs.opengroup.org/onlinepubs/9799919799/functions/nl_langinfo_l.html.

Get a string from the langinfo table

ยงSafety

  • Caller must ensure item is a valid nl_item index.
  • Returns a pointer to a null-terminated string, or an empty string if the item is invalid.
  • Compatibility requires mutable pointer to be returned, but it should not be mutated!