uriWindowsFilenameToUriStringA

Function uriWindowsFilenameToUriStringA 

Source
pub unsafe extern "C" fn uriWindowsFilenameToUriStringA(
    filename: *const c_char,
    uriString: *mut c_char,
) -> c_int
Expand description

Converts a Windows filename to a %URI string. The destination buffer must be large enough to hold 8 + 3 * len(filename) + 1 characters in case of an absolute filename or 3 * len(filename) + 1 in case of a relative filename.

EXAMPLE Input: “E:\Documents and Settings” Output: “file:///E:/Documents%20and%20Settings”

@param filename IN: Windows filename to convert @param uriString OUT: Destination to write %URI string to @return Error code or 0 on success

@see uriUriStringToWindowsFilenameA @see uriUnixFilenameToUriStringA @since 0.5.2