diff options
| author | Tyge Løvset <[email protected]> | 2020-10-14 23:14:02 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-10-14 23:14:02 +0200 |
| commit | 47190a51588341d0ab715398ded6a480bc4fa95a (patch) | |
| tree | 2f48b0cb83d6bd06506806e4a78f98f2fc19ed19 /examples/ptr.c | |
| parent | 48b5199a2ff5a31349bcff2d3ff70cb1d31a3f9f (diff) | |
| download | STC-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.c | 2 |
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) {
|
