> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::gxf::create_name

> Create a name from the prefix and the index.

```cpp showLineNumbers={false}
std::string holoscan::gxf::create_name(
    const char *prefix,
    int index
)
```

Create a name from the prefix and the index.

**Returns:** The created name (`<prefix>_<index>`).

**Parameters**

The prefix string.

The index.

```cpp showLineNumbers={false}
std::string holoscan::gxf::create_name(
    const char *prefix,
    const std::string &name
)
```

Create a name from the prefix and the name.

**Returns:** The created name (`<prefix>_<name>`).

**Parameters**

The prefix string.

The name.