diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/splitstr.c | 2 | ||||
| -rw-r--r-- | examples/sview_split.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c index 695e7595..35fe3cfa 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -18,7 +18,7 @@ cvec_str string_split(csview str, csview sep) size_t pos = 0;
while (pos != str.size) {
csview tok = csview_token(str, sep, &pos);
- cvec_str_push_back(&vec, cstr_from_v(tok));
+ cvec_str_push_back(&vec, cstr_from_sv(tok));
}
return vec;
}
diff --git a/examples/sview_split.c b/examples/sview_split.c index 1c29240b..0db175ce 100644 --- a/examples/sview_split.c +++ b/examples/sview_split.c @@ -14,7 +14,7 @@ int main() c_ARGsv(year), c_ARGsv(month), c_ARGsv(day));
c_auto (cstr, y, m, d) {
- y = cstr_from_v(year), m = cstr_from_v(month), d = cstr_from_v(day);
+ y = cstr_from_sv(year), m = cstr_from_sv(month), d = cstr_from_sv(day);
printf("%s, %s, %s\n", y.str, m.str, d.str);
}
}
|
