diff options
| author | Tyge Løvset <[email protected]> | 2020-03-31 09:49:07 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-31 09:49:07 +0200 |
| commit | 1685d4cab04588df31b08f12127c6967f1ae5f7a (patch) | |
| tree | 44b649794f7452efcc7befa94398d542db1cf5b8 | |
| parent | fdd4e00245492478f15bbf4add05dffd551ddef9 (diff) | |
| download | STC-modified-1685d4cab04588df31b08f12127c6967f1ae5f7a.tar.gz STC-modified-1685d4cab04588df31b08f12127c6967f1ae5f7a.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 <c_lib/cstring.h>
+#include <ccl/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 <c_lib/CMap.h>
+#include <ccl/CMap.h>
declare_CMap(ex, struct Person, CString, cstring_destroy, person_hash, person_compare, person_destroy);
int main()
|
