| www.delorie.com/gnu/docs/gnugo/gnugo_79.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These functions let the caller create nodes or access nodes easier.
SGFNode *sgfNewNode(void)
Allocate and return a new instance of SGFNode. The node is
cleared.
SGFProperty *sgfMkProperty(const char *name, const char *value,
SGFNode *node, SGFProperty *last)
Allocate and return a new instance ofSGFProperty. Thenameshould be 1 or 2 characters long. This function should probably not be used directly. Instead, use thesgfAddPropertyfunctions.
SGFNode *sgfPrev(SGFNode *node)
Return the previous node in a chain. This is done by going to the parent
node and then search through the children until the same node is found.
If there is no previous node, NULL is returned.
SGFNode *sgfRoot(SGFNode *node)
Return the root of the tree. Ifnodealready is the root,nodeitself is returned.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |