| www.delorie.com/gnu/docs/gnugo/gnugo_80.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int sgfGetIntProperty(SGFNode *node, const char *name, int
*value)
Get the propertynameinnodeas an integer. The value is returned invalue. Returns 1 if successful, otherwise returns 0.
int sgfGetFloatProperty(SGFNode *node, const char *name,
float *value)
Get the propertynameinnodeas a floating point value. The value is returned invalue. Returns 1 if successful, otherwise returns 0.
int sgfGetCharProperty(SGFNode *node, const char *name, char
**value)
Get the propertynameinnodeas a string of characters. The value is returned invalue. Returns 1 if successful, otherwise returns 0.
void sgfAddProperty(SGFNode *node, const char *name, const
char *value)
Add a new property to node. There is no check to see if there
already is a property with the same name. The property value has to be a
character string.
void sgfAddPropertyInt(SGFNode *node, const char *name, long
val)
Add an integer property tonode. This function converts the value to a string and callssgfAddProperty.
void sgfAddPropertyFloat(SGFNode *node, const char *name,
float val)
Add a floating point property tonode. This function converts the value to a string and callssgfAddProperty.
void sgfOverwriteProperty(SGFNode *node, const char *name,
const char *text)
Overwrite the propertynameinnodewith the stringtext. If the property does not yet exist innode, it is added usingsgfAddProperty.
void sgfOverwritePropertyInt(SGFNode *node, const char
*name, int value)
Overwrite the propertynameinnodewith the integervalue. If the property does not yet exist innode, it is added usingsgfAddPropertyInt.
void sgfOverwritePropertyFloat(SGFNode *node, const char
*name, float value)
Overwrite the propertynameinnodewith the floating point numbervalue. If the property does not yet exist innode, it is added usingsgfAddPropertyFloat.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |