% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcc_ptr_utils.R
\name{tcc_cstring}
\alias{tcc_cstring}
\title{Create a C-style string pointer}
\usage{
tcc_cstring(str)
}
\arguments{
\item{str}{Character string}
}
\value{
An external pointer tagged \code{"rtinycc_owned"} pointing to a
malloc'd copy of the string. Freed on garbage collection or via
\code{\link[=tcc_free]{tcc_free()}}.
}
\description{
Convert R character strings to C-style null-terminated string pointers.
This handles UTF-8 encoding and null termination automatically.
}
