fnmatch-sys

Crates.iofnmatch-sys
lib.rsfnmatch-sys
version1.0.0
sourcesrc
created_at2020-11-14 16:30:02.127769
updated_at2020-11-14 16:30:02.127769
descriptionRust binding for the C header fnmatch.h
homepage
repositoryhttps://github.com/iwahbe/fnmatch-sys
max_upload_size
id312381
size3,891
Ian Wahbe (iwahbe)

documentation

README

fnmatch-sys

Provides a rust ffi link to the C header file fnmatch.h. According to the rust convention, no effort is made to add safe abstractions to the declarations provided.

Building

fnmatch.h is required in CC's build path to link the library.

Declarations provided

    pub static FNM_NOMATCH: c_int; // Match failed.

    pub static FNM_NOESCAPE: c_int; // Disable backslash escpaing.

    pub static FNM_PATHNAME: c_int; // Slash must be matched by slash.

    pub static FNM_PERIOD: c_int; // Period must be matched by period.

    pub fn fnmatch(pattern: *const c_char, string: *const c_char, flags: c_int) -> c_int;
Commit count: 3

cargo fmt