diff options
| author | Tyge Løvset <[email protected]> | 2021-06-09 12:51:58 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-06-09 13:15:54 +0200 |
| commit | 5f16859df941c790e61c00a99fc62985601ca16b (patch) | |
| tree | 13eeac18e86d4ff35e244fd9400934ccdde95e31 /include | |
| parent | acb2e0f6e7eb871ab927b87a373ceeb4a79c42ac (diff) | |
| parent | 9d4e5a630d24f93540259a1ea484e1f0aa245095 (diff) | |
| download | STC-modified-5f16859df941c790e61c00a99fc62985601ca16b.tar.gz STC-modified-5f16859df941c790e61c00a99fc62985601ca16b.zip | |
Update to csptr docs.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/csptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/csptr.h b/include/stc/csptr.h index 60b9997f..4637963e 100644 --- a/include/stc/csptr.h +++ b/include/stc/csptr.h @@ -25,7 +25,7 @@ #include "ccommon.h"
-/* csptr: std::shared_ptr -like type:
+/* csptr: shared_ptr type
#include <stc/csptr.h>
#include <stc/cstr.h>
@@ -36,7 +36,7 @@ Person Person_init(const char* name, const char* last) { return (Person){.name = cstr_from(name), .last = cstr_from(last)};
}
void Person_del(Person* p) {
- printf("del: %s\n", p->name.str);
+ printf("del: %s %s\n", p->name.str, p->last.str);
c_del(cstr, &p->name, &p->last);
}
|
