Man page - zt_pack_string(3)
Packages contas this manual
- zt_pack_boolean(3)
- zt_main(3)
- zt_location_at(3)
- zt_pack_unsigned(3)
- zt_test_case_func(3)
- zt_pack_nothing(3)
- zt_test_suite_func(3)
- zt_check(3)
- zt_pack_rune(3)
- zt_visit_test_case(3)
- zt_value(3)
- zt_pack_string(3)
- zt_pack_pointer(3)
- zt_claim(3)
- libzt(3)
- zt_visitor(3)
- zt_test(3)
- zt_location(3)
- zt_pack_integer(3)
apt-get install libzt-doc
Manual
| zt_pack_string(3) | Library Functions Manual (prm) | zt_pack_string(3) |
NAME
zt_pack_string —
pack an C string into a variant
SYNOPSIS
#include
<zt.h>
zt_value
zt_pack_string(const char
*value, const char *source);
DESCRIPTION
zt_pack_string packs an C string, as well
as the string describing the expression evaluated to obtain it, into a
variant-like zt_value. The source argument is retained
by the value and is typically a constant string literal produced by the
preprocessor.
IMPLEMENTATION NOTES
zt_pack_string is only provided as a
static inline function.
Memory referenced by the string is not copied. It is assumed that
the memory reference stays valid during the execution of the verification of
an assertion that relies on the zt_value.
RETURN VALUES
The packed value.
SEE ALSO
zt_pack_nothing(3), zt_pack_string(3), zt_pack_rune(3), zt_pack_string(3), zt_pack_string(3), zt_pack_string(3), zt_pack_pointer(3) zt_value(3),
HISTORY
zt_pack_string first appeared in libzt
0.1
AUTHORS
Zygmunt Krynicki <me@zygoon.pl>
| January 12, 2020 | libzt 0.3.1 |