diff options
| author | Tyge Løvset <[email protected]> | 2023-02-13 18:03:22 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-13 18:03:22 +0100 |
| commit | a3645620cf4b8855801d9ca0cf7385de5a70c5d9 (patch) | |
| tree | 4ef27f9dc36d03507d86a4e6fee66494152c76dd /misc/examples/sso_substr.c | |
| parent | 3421d7b745310da05117fa97348a99a4a6ef8b5b (diff) | |
| download | STC-modified-a3645620cf4b8855801d9ca0cf7385de5a70c5d9.tar.gz STC-modified-a3645620cf4b8855801d9ca0cf7385de5a70c5d9.zip | |
Removed support for uppercase version of c_sv() (i.e c_SV => c_sv).
Renamed c_ARGSV => c_SV. Old name is still working.
Diffstat (limited to 'misc/examples/sso_substr.c')
| -rw-r--r-- | misc/examples/sso_substr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/sso_substr.c b/misc/examples/sso_substr.c index d17dc89c..4b2dbcc8 100644 --- a/misc/examples/sso_substr.c +++ b/misc/examples/sso_substr.c @@ -8,7 +8,7 @@ int main () intptr_t pos = cstr_find(&str, "live"); // position of "live" csview sv2 = cstr_substr_ex(&str, pos, 4); // "live" csview sv3 = cstr_slice_ex(&str, -8, -1); // "details" - printf("%.*s, %.*s, %.*s\n", c_SVARG(sv1), c_SVARG(sv2), c_SVARG(sv3)); + printf("%.*s, %.*s, %.*s\n", c_SV(sv1), c_SV(sv2), c_SV(sv3)); cstr_assign(&str, "apples are green or red"); cstr s2 = cstr_from_sv(cstr_substr_ex(&str, -3, 3)); // "red" |
