Skip to main content

EN_setnodeid

Function EN_setnodeid 

Source
pub unsafe extern "C" fn EN_setnodeid(
    ph: EN_Project,
    index: c_int,
    newid: *const c_char,
) -> c_int
Expand description

@brief Changes the ID name of a node. @param ph an EPANET project handle. @param index a node’s index (starting from 1). @param newid the new ID name for the node. @return an error code.

The ID name must not be longer than @ref EN_SizeLimits “EN_MAXID” characters.