992a12b087b6cef00ad0f699d613f2abc538018b kent Thu Apr 20 17:46:28 2017 -0700 Moving some little new useful routines to library. diff --git src/inc/obscure.h src/inc/obscure.h index bf9823a..0123b6d 100644 --- src/inc/obscure.h +++ src/inc/obscure.h @@ -130,30 +130,33 @@ * 1-this1=val1 2-this='quoted val2' var3="another val" * If firstStartsWithLetter is true, then the left side of the equals must start with * and equals. */ struct hash *hashWordsInFile(char *fileName, int hashSize); /* Create a hash of space delimited words in file. * hashSize is as in hashNew() - pass 0 for default. */ struct hash *hashNameIntFile(char *fileName); /* Given a two column file (name, integer value) return a * hash keyed by name with integer values */ struct hash *hashTwoColumnFile(char *fileName); /* Given a two column file (key, value) return a hash. */ +struct slPair *slPairTwoColumnFile(char *fileName); +/* Read in a two column file into an slPair list */ + void shuffleArrayOfChars(char *array, int arraySize); /* Shuffle array of characters of given size given number of times. */ void shuffleArrayOfInts(int *array, int arraySize); /* Shuffle array of ints of given size given number of times. */ void shuffleArrayOfPointers(void *pointerArray, int arraySize); /* Shuffle array of pointers of given size given number of times. */ void shuffleList(void *pList); /* Randomize order of slList. Usage: * shuffleList(&list) * where list is a pointer to a structure that * begins with a next field. */