diff options
| author | Tyge Løvset <[email protected]> | 2021-12-13 13:53:22 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-13 13:53:22 +0100 |
| commit | 17280f8177736c35b34e41556a307ca51e68d1e2 (patch) | |
| tree | 96b0b7dfeede1dc0a6c6f36ec60f18e2ff3bd68a /examples/splitstr.c | |
| parent | c7a26eb5b5fef1c2706d5875a0603d352926487e (diff) | |
| download | STC-modified-17280f8177736c35b34e41556a307ca51e68d1e2.tar.gz STC-modified-17280f8177736c35b34e41556a307ca51e68d1e2.zip | |
Renamed constructor *cstr_lit()* to `cstr_new(lit)`.
Renamed *cstr_assign_fmt()* to `cstr_printf()`.
Renamed cbits_from_str() to cbits_from().
Diffstat (limited to 'examples/splitstr.c')
| -rw-r--r-- | examples/splitstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c index baa48d21..8bea911a 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -33,7 +33,7 @@ int main() print_split(c_sv("This has no matching separator"), c_sv("xx")); puts("");
puts("Output from string_split():");
- cstr string = cstr_lit("Split,this,,string,now,");
+ cstr string = cstr_new("Split,this,,string,now,");
cvec_str vec = string_split(cstr_sv(string), c_sv(","));
c_autodefer (cvec_str_del(&vec), cstr_del(&string))
|
