tcc_cstring: Create a C-style string pointer

View source: R/tcc_ptr_utils.R

tcc_cstringR Documentation

Create a C-style string pointer

Description

Convert R character strings to C-style null-terminated string pointers. This handles UTF-8 encoding and null termination automatically.

Usage

tcc_cstring(str)

Arguments

str

Character string

Value

An external pointer tagged "rtinycc_owned" pointing to a malloc'd copy of the string. Freed on garbage collection or via tcc_free().


Rtinycc documentation built on April 28, 2026, 1:07 a.m.