next up previous contents
Next: commitDatatype Up: General functions Previous: setArrayValue

extractParentChildName

int extractParentChildName (HL_Node* node, char* parent, char* child)

Seperates the last node (the child) in a node name consisting of several nodes (the parent). For example, for a node name given as /group1/group2/group3, this function will set /group1/group2 as the parent and group3 as the child.

Arguments:

node: The node under scrutiny.

parent: A string to hold the parent's node name.

child: A string to hold the child's node name.

Returns 1 if successful and 0 otherwise.




2000-08-08