From 0fced463804f06c75e7696621d136bc1630255de Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Sun, 21 Jun 2020 23:10:41 +0200 Subject: Update README.md --- examples/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/README.md b/examples/README.md index 031db20d..c9952317 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,4 +1,12 @@ -To be able to use CMap with a user-defined key-type, you need to define two things: +Examples +======== +Contains various examples and benchmarks. + + +advanced.c Example +------------------ + +This demonstrates how to customize **CHash map** with a user-defined key-type. You need to define two things: 1. A hash function; this must be a function that calculates the hash value given an object of the key-type. @@ -86,5 +94,5 @@ int main() chash_ex_destroy(&m6); } ``` -CMap uses personview_hash() for hash value calculations, and the personview_compare() for equality checks. The chash_ex_destroy() function will free CStrings name, surname and the value for each item in the map, in addition to the CMap hash table itself. +CHash map uses personview_hash() for hash value calculations, and the personview_compare() for equality checks. The chash_ex_destroy() function will free CStrings name, surname and the value for each item in the map, in addition to the CMap hash table itself. -- cgit v1.2.3