application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Working with ovx_string_t in C and C++. Use when user asks about printing, comparing, or converting ovx strings.
Claude Code
$ npx -y skills add nvidia-omniverse/ovrtx --skill string-handling --agent claude-code
Codex
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a codex -y
Cursor
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a cursor -y
Gemini CLI
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a gemini-cli -y
GitHub Copilot
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a github-copilot -y
OpenCode
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a opencode -y
Windsurf
$ npx skills add nvidia-omniverse/ovrtx --skill string-handling -a windsurf -y
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0 name: string-handling description: > Working with ovx_string_t in C and C++. Use when user asks about printing, comparing, or converting ovx strings. license: CC-BY-4.0 AND Apache-2.0 author: NVIDIA ovrtx tags: - ovrtx - c - strings tools: - Read - Grep
Use this skill when the user asks about printing, comparing, or converting ovx strings.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify whether the task is printing, comparing, converting, or preserving an `ovx_string_t`. 2. Use both `ptr` and `length`; do not assume the string can be handled safely by APIs that only look for a null terminator. 3. In C, print with a precision-limited string format and compare by checking `length` before using `strncmp`. 4. In C++, prefer `std::string_view` when the caller only needs borrowed access, and copy immediately if the value must outlive the API-owned storage. 5. When changing code, run the C example or helper test that owns the referenced string-handling pattern whenever practical.
This skill has no scripts.
All strings returned by the ovrtx API use `ovx_string_t` — a `(ptr, length)` pair. The strings are null-terminated, but prefer using the `length` field over relying on the null terminator.
Print with the `%.*s` precision pattern so the explicit length controls how many characters are read from `ptr`.
Compare by checking `length` first, then using `strncmp` for the exact byte count.
Wrap `ptr` and `length` in `std::string_view` for zero-copy access to the standard string API.
The error-handling helper in the minimal C example demonstrates this pattern:
> **Source:** `examples/c/minimal/main.cpp` snippet `check-error-helper`
| Type | Header | |------|--------| | `ovx_string_t` | `include/ovx/types.h` | | `literal_to_ovx_string(str)` | `include/ovx/types.h` — creates `ovx_string_t` from a string literal | | `is_ovx_string_empty(str)` | `include/ovx/types.h` — null/empty check |
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…