From 00804d9ff488f63468a0bb528c7b807aea7c3ea3 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 18 Apr 2022 00:44:51 +0200 Subject: Converted all example to use cstr_str(&s) instead of s.str to allow SSO string. Fixed misc warnings. --- examples/sview_split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/sview_split.c') diff --git a/examples/sview_split.c b/examples/sview_split.c index 0db175ce..3e3c584b 100644 --- a/examples/sview_split.c +++ b/examples/sview_split.c @@ -15,6 +15,6 @@ int main() c_auto (cstr, y, m, d) { 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); + printf("%s, %s, %s\n", cstr_str(&y), cstr_str(&m), cstr_str(&d)); } } -- cgit v1.2.3