Skip to main content

deletehookfunc

Function deletehookfunc 

Source
pub fn deletehookfunc(n: &str, f: Hookfn) -> i32
Expand description

Port of deletehookfunc() from Src/module.c:977. — C decl deletehookfunc(const char *n, Hookfn f).

C body (c:977-984):

int deletehookfunc(const char *n, Hookfn f) {
    Hookdef h = gethookdef(n);
    if (h) return deletehookdeffunc(h, f);
    return 1;
}