Function gnunet_sys::GNUNET_STRINGS_get_short_name[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_get_short_name(
    filename: *const c_char
) -> *const c_char

“man basename” Returns a pointer to a part of filename (allocates nothing)!

@param filename filename to extract basename from @return short (base) name of the file (that is, everything following the last directory separator in filename. If filename ends with a directory separator, the result will be a zero-length string. If filename has no directory separators, the result is filename itself.