Skip to contents

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().