2fd3461719454015d7ef6be8be27609b3ce22b4c kent Wed Jul 10 13:42:49 2013 -0700 Adding shuffle array of ints. diff --git src/inc/obscure.h src/inc/obscure.h index cf900a3..ddc569e 100644 --- src/inc/obscure.h +++ src/inc/obscure.h @@ -126,30 +126,33 @@ 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. */ 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. */ char *stripCommas(char *position); /* make a new string with commas stripped out */ void dotForUserInit(int dotMod); /* Set how often dotForUser() outputs a dot. */