summaryrefslogtreecommitdiffhomepage
path: root/examples/ptr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-10-14 23:14:02 +0200
committerTyge Løvset <[email protected]>2020-10-14 23:14:02 +0200
commit47190a51588341d0ab715398ded6a480bc4fa95a (patch)
tree2f48b0cb83d6bd06506806e4a78f98f2fc19ed19 /examples/ptr.c
parent48b5199a2ff5a31349bcff2d3ff70cb1d31a3f9f (diff)
downloadSTC-modified-47190a51588341d0ab715398ded6a480bc4fa95a.tar.gz
STC-modified-47190a51588341d0ab715398ded6a480bc4fa95a.zip
Renamed cstr() constructor to cstr_from(), cstr_from() to cstr_from_fmt().
Diffstat (limited to 'examples/ptr.c')
-rw-r--r--examples/ptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ptr.c b/examples/ptr.c
index dc0e5341..3ffb9292 100644
--- a/examples/ptr.c
+++ b/examples/ptr.c
@@ -5,7 +5,7 @@
typedef struct { cstr_t name, last; } Person;
Person* Person_make(Person* p, const char* name, const char* last) {
- p->name = cstr(name), p->last = cstr(last);
+ p->name = cstr_from(name), p->last = cstr_from(last);
return p;
}
void Person_del(Person* p) {