.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "doc::unibi_var_from_str 3" .TH doc::unibi_var_from_str 3 2024-03-20 unibilium-2.1.1 unibilium .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME unibi_num_from_var, unibi_str_from_var, unibi_var_from_num, unibi_var_from_str \&\- create and inspect unibi_var_t values .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& #include \& \& int unibi_num_from_var(unibi_var_t v); \& const char *unibi_str_from_var(unibi_var_t v); \& \& unibi_var_t unibi_var_from_num(int i); \& unibi_var_t unibi_var_from_str(char *s); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" \&\f(CW\*(C`unibi_var_from_num\*(C'\fR and \f(CW\*(C`unibi_var_from_str\*(C'\fR wrap the given int or string in a \f(CW\*(C`unibi_var_t\*(C'\fR object for use in \fBunibi_format\fR\|(3) and \fBunibi_run\fR\|(3). .PP \&\f(CWunibi_num_from_var(v)\fR returns the number stored in \fIv\fR, which must have been constructed by \f(CW\*(C`unibi_var_from_num\*(C'\fR. \&\f(CWunibi_str_from_var(v)\fR returns the string stored in \fIv\fR, which must have been constructed by \f(CW\*(C`unibi_var_from_str\*(C'\fR. .PP It is an error to pass a wrapped string to \f(CW\*(C`unibi_num_from_var\*(C'\fR or a wrapped number to \f(CW\*(C`unibi_str_from_var\*(C'\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBunibi_format\fR\|(3), \&\fBunibi_run\fR\|(3), \&\fBunibilium.h\fR\|(3)