% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcc_ptr_utils.R
\name{tcc_ptr_is_owned}
\alias{tcc_ptr_is_owned}
\title{Check for the \code{"rtinycc_owned"} tag}
\usage{
tcc_ptr_is_owned(ptr)
}
\arguments{
\item{ptr}{External pointer}
}
\value{
Logical scalar
}
\description{
Returns \code{TRUE} only for pointers created by \code{\link[=tcc_malloc]{tcc_malloc()}} or
\code{\link[=tcc_cstring]{tcc_cstring()}}. Struct pointers (tagged \code{"struct_<name>"}) and
borrowed pointers return \code{FALSE}.
}
