gobj_write_pointer_attr()
#
Sets the value of a pointer attribute in the given hgobj
object.
Prototype
int gobj_write_pointer_attr(
hgobj gobj,
const char *name,
void *value
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The |
|
|
The name of the attribute to modify. |
|
|
The new pointer value to assign to the attribute. |
Return Value
Returns 0 on success, or -1 if the attribute is not found.
Notes
If the attribute does not exist, an error is logged and -1 is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples