fnmatch-sys 1.0.0

Rust binding for the C header fnmatch.h
Documentation
  • Coverage
  • 83.33%
    5 out of 6 items documented1 out of 1 items with examples
  • Size
  • Source code size: 3.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 513.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • iwahbe/fnmatch-sys
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iwahbe

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;