Repository navigation
Sword 0.2.3 — Fold
2026-10-20. A hotfix to Fold for programs that talk to C: strings cross
between the two without each program writing its own conversion.
Standard library
strings.FromCreads a C string up to its zero, andstrings.FromCMax
also stops at a limit, for achar[N]field the text fills. Both answer with
a view of the C memory and copy nothing.strings.ToCwrites a string and its zero into a buffer of the caller's
for a C function that wants aconst char *, and refuses a string holding a
zero, which C would read as a different, shorter one.
Nothing that compiled before stops compiling.