aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.as_c_string.3
blob: ddf4f1cd45e4c72cd7dae84c029b563e27b2da93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.as_c_string 3 2025-09-06 "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 lb
l l l l.
Name	Type	Description	Default
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
>> "Hello".as_c_string()
= CString("Hello")
.EE