fz_open_file

Function fz_open_file 

Source
pub unsafe extern "C" fn fz_open_file(
    ctx: *mut fz_context,
    filename: *const c_char,
) -> *mut fz_stream
Expand description

Open the named file and wrap it in a stream.

filename: Path to a file. On non-Windows machines the filename
should be exactly as it would be passed to fopen(2). On Windows
machines, the path should be UTF-8 encoded so that non-ASCII
characters can be represented. Other platforms do the encoding
as standard anyway (and in most cases, particularly for MacOS
and Linux, the encoding they use is UTF-8 anyway).