5f2a0e390ae8a849b5d987fbcd86d8dda453c14c
kent
  Tue May 30 18:15:29 2017 -0700
Adding two functions that build hashes out of arrays of strings.

diff --git src/inc/hash.h src/inc/hash.h
index 4b0b80c..83d4ac5 100644
--- src/inc/hash.h
+++ src/inc/hash.h
@@ -273,17 +273,23 @@
 
 void hashMustRemove(struct hash *hash, char *name);
 /* Remove item of the given name from hash table, or error
  * if not present */
 
 char *hashToRaString(struct hash *hash);
 /* Convert hash to string in ra format. */
 
 int hashNumEntries(struct hash *hash);
 /* count the number of entries in a hash */
 
 struct hash *hashFromString(char *string);
 /* parse a whitespace-separated string with tuples in the format name=val or
  * name="val" to a hash name->val */
 
+struct hash *hashFromNameArray(char **nameArray, int nameCount);
+/* Create a NULL valued hash on all names in array */
+
+struct hash *hashFromNameValArray(char *nameVal[][2], int nameValCount);
+/* Make up a hash from nameVal array */
+
 #endif /* HASH_H */