const char* GetNetName_bn ( const net_bn*  net )

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

This may be different from the file name used to save net, and different from net's title.

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

Note that two different nets in Netica's memory may have the same name.

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:

SetNetName_bn    Sets it
GetNetTitle_bn    Longer, unrestricted label
GetNetFileName_bn    Gets the name of file the net has last been read from or saved to