logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zt_pack_string — pack an C string into a variant

Authors

       Zygmunt Krynicki <me@zygoon.pl>

libzt 0.3.1                                     January 12, 2020                               zt_pack_string(3)

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.

History

zt_pack_string first appeared in libzt 0.1

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.

Name

       zt_pack_string — pack an C string into a variant

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),

Synopsis

#include<zt.h>zt_valuezt_pack_string(constchar*value, constchar*source);

See Also