summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-10 06:41:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-10 06:41:50 -0700
commit471149c262613e4b69fc14b9599fe541106084e4 (patch)
treee784850dd3089f325d37482621aa5d3ae7c2c045 /struct.c
parentfe81a856d6a1db346c519897581925d1797913ad (diff)
downloadtxr-471149c262613e4b69fc14b9599fe541106084e4.tar.gz
txr-471149c262613e4b69fc14b9599fe541106084e4.tar.bz2
txr-471149c262613e4b69fc14b9599fe541106084e4.zip
ffi: adjust semantics of zarray of characters.
We want to be able to extract null-terminated UTF-8 strings from arrays, without trailing junk, yet retain the ability to extract the entire array including embedded nulls. The natural way is to use the array/zarray distinction. * ffi.c (ffi_array_in, ffi_array_get): Don't try to guess whether the array is null terminated; just rely on the null_term flag, and treat accordingly. * txr.1: Doc updated.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions