Skip to main content

fetchcmdnamnode

Function fetchcmdnamnode 

Source
pub fn fetchcmdnamnode(hn: *mut hashnode, _printflags: i32)
Expand description

Port of fetchcmdnamnode(HashNode hn, UNUSED(int printflags)) from Src/builtin.c:3967. C: static void fetchcmdnamnode(HashNode hn, UNUSED(int printflags))addlinknode(matchednodes, cn->node.nam); C body (2 lines): Cmdnam cn = (Cmdnam) hn; addlinknode(matchednodes, cn->node.nam); (C source does not null-check hn — callers guarantee non-null.) WARNING: param names don’t match C — Rust=(hn) vs C=(hn, printflags)