diff options
author | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-09-15 02:46:47 -0500 |
---|---|---|
committer | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-09-15 02:48:47 -0500 |
commit | 7f82cd9b726f69f01c243833058e438c4e22b84f (patch) | |
tree | d486bd12def255048b27fa1d357036059451ee52 /libhashtable/example.c | |
parent | 9b8d802ca89027de46ee45fbc9adf978a16e7927 (diff) | |
download | segfault-7f82cd9b726f69f01c243833058e438c4e22b84f.tar.gz segfault-7f82cd9b726f69f01c243833058e438c4e22b84f.zip |
did the TODO of making builtins use a hashtable.
added two commands for dealing with them.
if you want you can override builtins for security reasons? :)
added a small program for doing tail -f for systems that may not have tail -f
Diffstat (limited to 'libhashtable/example.c')
-rw-r--r-- | libhashtable/example.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhashtable/example.c b/libhashtable/example.c index bc42a67..919d75c 100644 --- a/libhashtable/example.c +++ b/libhashtable/example.c @@ -19,5 +19,7 @@ int main(int argc,char *argv[]) { free(name); } printf("PATH='%s'\n",ht_getvalue(&ht,"PATH")); + //if you want to get a whole entry struct use ht_getnode(); + //getentry() just returns the first struct in the linked list in that bucket. return 0; } |