diff options
| author | Tyge Løvset <[email protected]> | 2020-03-16 18:49:07 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-16 18:49:07 +0100 |
| commit | e89c718bc654f6d53423497d286d30ecf64d98a1 (patch) | |
| tree | 7758919fbbba1e2aea2fe57bb4db655a749363c7 | |
| parent | ccb08cd06df7ef08892584a96678f14ca163f98d (diff) | |
| download | STC-modified-e89c718bc654f6d53423497d286d30ecf64d98a1.tar.gz STC-modified-e89c718bc654f6d53423497d286d30ecf64d98a1.zip | |
Update README.md
| -rw-r--r-- | README.md | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -10,7 +10,7 @@ Usage -----
CString demo:
```
-#include <clib/cstring.h>
+#include <c_lib/cstring.h>
int main() {
CString cs = cstring_make("one-nine-three-seven-five");
@@ -36,7 +36,7 @@ int main() { ```
Simple CVector of 64bit ints:
```
-#include <clib/cvector.h>
+#include <c_lib/cvector.h>
declare_CVector(ix, int64_t); // ix is just an example tag name, use anything without underscore.
int main() {
@@ -54,8 +54,8 @@ int main() { ```
CVector of CString:
```
-#include <clib/cstring.h>
-#include <clib/cvector.h>
+#include <c_lib/cstring.h>
+#include <c_lib/cvector.h>
declare_CVector(cs, CString, cstring_destroy); // supply inline destructor of values
int main() {
@@ -70,7 +70,7 @@ int main() { ```
Simple CMap, int -> int:
```
-#include <clib/cmap.h>
+#include <c_lib/cmap.h>
declare_CMap(ii, int, int);
int main() {
@@ -84,8 +84,8 @@ int main() { ```
Simple CMap, CString -> int:
```
-#include <clib/cstring.h>
-#include <clib/cmap.h>
+#include <c_lib/cstring.h>
+#include <c_lib/cmap.h>
declare_CMap_stringkey(si, int); // Shorthand macro for the general declare_CMap expansion.
// CString keys are "magically" managed internally, although CMap is ignorant of CString.
@@ -108,8 +108,8 @@ int main() { ```
CMap, with CString -> CString. Temporary CString values are created by "make", and moved to the container.
```
-#include <clib/cstring.h>
-#include <clib/cmap.h>
+#include <c_lib/cstring.h>
+#include <c_lib/cmap.h>
declare_CMap_stringkey(ss, CString, cstring_destroy);
int main() {
|
