const char* GetNetComment_bn ( const net_bn*  net )

Returns a C character string which contains the comment associated with net, or the empty string (rather than NULL) if net does not have a comment.

The comment may contain anything, but see SetNetComment_bn for what it's meant to contain.

There is no restriction on the length of the comment, or on what characters it might contain.

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.

Version:

This function is available in all versions.

See also:

SetNetComment_bn    Sets it
GetNodeComment_bn    Get the comment for a particular node