Add more CTL content

This commit is contained in:
Justine Tunney 2024-06-28 19:07:35 -07:00
parent 38921dc46b
commit 021c53ba32
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
56 changed files with 1747 additions and 298 deletions

View file

@ -38,9 +38,9 @@ strcat(const string_view lhs, const string_view rhs) noexcept
if (rhs.n)
memcpy(res.data() + lhs.n, rhs.p, rhs.n);
if (res.isbig()) {
res.big()->n = lhs.n + rhs.n;
res.__b.n = lhs.n + rhs.n;
} else {
res.small()->rem = __::sso_max - lhs.n - rhs.n;
res.__s.rem = __::sso_max - lhs.n - rhs.n;
}
res.data()[res.size()] = 0;
return res;