diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-07-23 17:11:33 +0200 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-07-23 17:11:33 +0200 |
commit | 0054bcc64898ac165b6ddb3bc577613a058c6e46 (patch) | |
tree | 97096ffa6887bb21131fe3de9f39cd6bd8b99a92 | |
parent | bfb44d757c2de74de6ee48d19141fb4946035980 (diff) | |
download | C-hashtable-0054bcc64898ac165b6ddb3bc577613a058c6e46.tar.gz C-hashtable-0054bcc64898ac165b6ddb3bc577613a058c6e46.zip |
try to make README render better on libregit
-rw-r--r-- | README.md | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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## |