diff options
| author | Tyge Løvset <[email protected]> | 2022-04-18 00:44:51 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-18 00:44:51 +0200 |
| commit | 00804d9ff488f63468a0bb528c7b807aea7c3ea3 (patch) | |
| tree | 51b47787adc853bd1a10ec820a6ef5c184fa2498 /examples/csmap_insert.c | |
| parent | 4436a1c0ac37dc2e73a2134d5ad85c010340b35d (diff) | |
| download | STC-modified-00804d9ff488f63468a0bb528c7b807aea7c3ea3.tar.gz STC-modified-00804d9ff488f63468a0bb528c7b807aea7c3ea3.zip | |
Converted all example to use cstr_str(&s) instead of s.str to allow SSO string. Fixed misc warnings.
Diffstat (limited to 'examples/csmap_insert.c')
| -rw-r--r-- | examples/csmap_insert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/csmap_insert.c b/examples/csmap_insert.c index 11217de5..07fba9ed 100644 --- a/examples/csmap_insert.c +++ b/examples/csmap_insert.c @@ -27,7 +27,7 @@ void print_ii(csmap_ii map) { void print_istr(csmap_istr map) {
c_foreach (e, csmap_istr, map)
- printf("(%d, %s) ", e.ref->first, e.ref->second.str);
+ printf("(%d, %s) ", e.ref->first, cstr_str(&e.ref->second));
puts("");
}
|
