gobj_child_by_name()

gobj_child_by_name()#

Retrieves the first child of a given hgobj that matches the specified name.

Prototype

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

Parameters

Key

Type

Description

gobj

hgobj

The parent hgobj whose children will be searched.

name

const char *

The name of the child hgobj to find.


Return Value

Returns the first child hgobj that matches the given name, or NULL if no match is found.

Notes

This function performs a case-sensitive comparison of the child names.

Prototype

// Not applicable in JS

Prototype

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