summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-03-03 11:28:58 +0100
committerTyge Løvset <[email protected]>2021-03-03 11:37:19 +0100
commit57f479e4099236a0fe2b7bbd95f0771f309aff2b (patch)
tree39d42fcdb75c55eaac9972c2640a78d2d916ef1d /stc
parent30cf6e3e080725539f7c09890a151d13eece7911 (diff)
downloadSTC-modified-57f479e4099236a0fe2b7bbd95f0771f309aff2b.tar.gz
STC-modified-57f479e4099236a0fe2b7bbd95f0771f309aff2b.zip
Removed cstr_t from docs (use cstr).
Diffstat (limited to 'stc')
-rw-r--r--stc/cptr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stc/cptr.h b/stc/cptr.h
index 43439e85..0cb51841 100644
--- a/stc/cptr.h
+++ b/stc/cptr.h
@@ -29,7 +29,7 @@
#include <stc/cstr.h>
#include <stc/cvec.h>
-typedef struct { cstr_t name, last; } Person;
+typedef struct { cstr name, last; } Person;
Person* Person_make(Person* p, const char* name, const char* last) {
p->name = cstr_from(name), p->last = cstr_from(last);
@@ -100,7 +100,7 @@ int main() {
#include <stc/cptr.h>
#include <stc/cstr.h>
-typedef struct { cstr_t name, last; } Person;
+typedef struct { cstr name, last; } Person;
Person* Person_make(Person* p, const char* name, const char* last) {
p->name = cstr_from(name), p->last = cstr_from(last);