946ec4deb61682f1608c3c8f08dfd1ed838fc6d6 kent Mon Jan 11 14:56:33 2021 -0800 Added a basic tab-sep output a line to library. diff --git src/inc/obscure.h src/inc/obscure.h index f317910..062a0a0 100644 --- src/inc/obscure.h +++ src/inc/obscure.h @@ -147,30 +147,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. */ struct hash *hashTsvBy(char *in, int keyColIx, int *retColCount); /* Return a hash of rows keyed by the given column */ +void writeTsvRow(FILE *f, int rowSize, char **row); +/* Write out row of strings to a line in tab-sep file */ + 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)