gobj_attr_type()

gobj_attr_type()#

Returns the data type of a given attribute in the specified hgobj.

Prototype

data_type_t gobj_attr_type(
    hgobj gobj,
    const char *name
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance whose attribute type is being queried.

name

const char *

The name of the attribute whose type is to be retrieved.


Return Value

Returns the data_type_t of the specified attribute, or 0 if the attribute does not exist.

Notes

If the attribute does not exist, the function returns 0 without logging an error.

Prototype

// Not applicable in JS

Prototype

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