diff options
| author | Tyge Løvset <[email protected]> | 2020-03-16 18:48:04 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-16 18:48:04 +0100 |
| commit | ccb08cd06df7ef08892584a96678f14ca163f98d (patch) | |
| tree | 276322d24ec9e96913b740c413b1c83afbb8af8c | |
| parent | a975745f0d96785f52785531dc0bcb73c502c285 (diff) | |
| download | STC-modified-ccb08cd06df7ef08892584a96678f14ca163f98d.tar.gz STC-modified-ccb08cd06df7ef08892584a96678f14ca163f98d.zip | |
Update EXAMPLE.md
| -rw-r--r-- | EXAMPLE.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ The difficulty with the hash function is that if your key type consists of sever Assuming a key-type like this, and want string as value, we define the functions person_make(), person_destroy() and person_compare():
```
-#include <clib/cstring.h>
+#include <c_lib/cstring.h>
struct Person
{
@@ -51,7 +51,7 @@ size_t person_hash(const struct Person* p, size_t ignore) { ```
With this in place, you can instantiate a CMap with Person => CString:
```
-#include <clib/CMap.h>
+#include <c_lib/CMap.h>
declare_CMap(ex, struct Person, CString, cstring_destroy, person_compare, person_hash, person_destroy);
int main()
|
