diff options
| author | Tyge Løvset <[email protected]> | 2022-12-20 12:17:32 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-20 12:17:32 +0100 |
| commit | 1778629d92849af84239c4b8c1940ed76fd87b8a (patch) | |
| tree | cbe600a280aee2405836c66413e234de071bb231 /examples/csmap_erase.c | |
| parent | 21817cae767d72e6007150b639f9365e35502173 (diff) | |
| download | STC-modified-1778629d92849af84239c4b8c1940ed76fd87b8a.tar.gz STC-modified-1778629d92849af84239c4b8c1940ed76fd87b8a.zip | |
Renamed (reverted) cstr_new(lit) => cstr_lit(lit). Old name is deprecated (supported for now).
Diffstat (limited to 'examples/csmap_erase.c')
| -rw-r--r-- | examples/csmap_erase.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/csmap_erase.c b/examples/csmap_erase.c index 97f45779..48d8ceef 100644 --- a/examples/csmap_erase.c +++ b/examples/csmap_erase.c @@ -20,11 +20,11 @@ int main() c_auto (mymap, m1) { // Fill in some data to test with, one at a time - mymap_insert(&m1, 1, cstr_new("A")); - mymap_insert(&m1, 2, cstr_new("B")); - mymap_insert(&m1, 3, cstr_new("C")); - mymap_insert(&m1, 4, cstr_new("D")); - mymap_insert(&m1, 5, cstr_new("E")); + mymap_insert(&m1, 1, cstr_lit("A")); + mymap_insert(&m1, 2, cstr_lit("B")); + mymap_insert(&m1, 3, cstr_lit("C")); + mymap_insert(&m1, 4, cstr_lit("D")); + mymap_insert(&m1, 5, cstr_lit("E")); puts("Starting data of map m1 is:"); printmap(m1); |
