gobj_read_str_attr()

gobj_read_str_attr()#

Retrieves the string value of a specified attribute from the given hgobj, considering inherited attributes if applicable.

Prototype

const char *gobj_read_str_attr(
    hgobj gobj, 
    const char *name
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance from which the attribute value is retrieved.

name

const char *

The name of the attribute to retrieve.


Return Value

Returns a pointer to the string value of the specified attribute. If the attribute is not found, returns NULL.

Notes

If the attribute is inherited from a bottom hgobj, the function retrieves the value from the lowest level in the hierarchy.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples