const char* GetNodeName_bn ( const node_bn*  node )

Returns a C character string which is the name of node.

You can count on the name to be present, and to be a legal IDname, so it is guaranteed to be NAME_MAX_ns (30) or fewer characters (not including terminating 0).

Don't confuse this with the "title" of node, which is available by GetNodeTitle_bn.

If you need the string to persist, make a copy of the string returned, since its contents may become invalid after further calls to Netica API. Do not try to directly modify or free the string returned.


This function is available in all versions.

See also:

SetNodeName_bn    Sets it
GetNodeNamed_bn    (inverse function) Gets the node given its name
GetNodeTitle_bn    Gets the node's title