From 7f82cd9b726f69f01c243833058e438c4e22b84f Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Mon, 15 Sep 2014 02:46:47 -0500 Subject: 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 --- libhashtable/example.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libhashtable/example.c') 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; } -- cgit v1.2.3