main
Download
35 lines 641 BGroffModified 2025-11-29 raw
1234567891011121314151617181920212223242526272829303132333435
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.as_c_string 3 2025-11-29 "Tomo man-pages"
.SH NAME
Text.as_c_string \- convert to C-style string
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Text.as_c_string\ :\ func(text:\ Text\ ->\ CString)
.fi
.SH DESCRIPTION
Converts a `Text` value to a C-style string.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
text	Text	The text to be converted to a C-style string. 
.TE
.SH RETURN
A C-style string (`CString`) representing the text.

.SH EXAMPLES
.EX
assert "Hello".as_c_string() == CString("Hello")
.EE
.SH SEE ALSO
.BR Tomo-Text (3)