summaryrefslogtreecommitdiffhomepage
path: root/examples/csmap_erase.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-20 12:17:32 +0100
committerTyge Løvset <[email protected]>2022-12-20 12:17:32 +0100
commit1778629d92849af84239c4b8c1940ed76fd87b8a (patch)
treecbe600a280aee2405836c66413e234de071bb231 /examples/csmap_erase.c
parent21817cae767d72e6007150b639f9365e35502173 (diff)
downloadSTC-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.c10
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);