aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-07-23 17:11:33 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-07-23 17:11:33 +0200
commit0054bcc64898ac165b6ddb3bc577613a058c6e46 (patch)
tree97096ffa6887bb21131fe3de9f39cd6bd8b99a92
parentbfb44d757c2de74de6ee48d19141fb4946035980 (diff)
downloadC-hashtable-0054bcc64898ac165b6ddb3bc577613a058c6e46.tar.gz
C-hashtable-0054bcc64898ac165b6ddb3bc577613a058c6e46.zip
try to make README render better on libregit
-rw-r--r--README.md19
1 files changed, 11 insertions, 8 deletions
diff --git a/README.md b/README.md
index b189106..01d9195 100644
--- a/README.md
+++ b/README.md
@@ -19,25 +19,28 @@ It you want to use this in your project, just add hashtable.c to your C source f
####Console example####
Run something like:
- gcc hashtable.c example_use.c -std=c99 -Wall -O2 -o example_use
+ $`gcc hashtable.c example_use.c -std=c99 -Wall -O2 -o example_use`
And then start the program:
- ./example_use
+ $`./example_use`
It understands the following kinds of commands fed to it's input:
- add <key> <value>
- set <key> <value>
- get <key> <value>
- rem <key> <value>
+ `add <key> <value>`
+
+ `set <key> <value>`
+
+ `get <key> <value>`
+
+ `rem <key> <value>`
As well as:
- entries
+ `entries`
which prints the number of key→value pairs stored in the hashtable and
- print
+ `print`
which prints all the mappings in the ht.
##Incomplete parts##