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/rawptr_elements.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/rawptr_elements.c')
| -rw-r--r-- | examples/rawptr_elements.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rawptr_elements.c b/examples/rawptr_elements.c index 483e7c9a..8f7dd4de 100644 --- a/examples/rawptr_elements.c +++ b/examples/rawptr_elements.c @@ -57,6 +57,6 @@ int main() cmap_str_emplace(&map, "goodbye", 400);
c_forpair (name, number, cmap_str, map)
- printf("%s: %" PRIdMAX "\n", _.name.str, *_.number);
+ printf("%s: %" PRIdMAX "\n", cstr_str(&_.name), *_.number);
}
}
|
