fe43cd3394528a515b867eb2e8f69d152bd4d178 jcasper Mon May 6 10:01:16 2019 -0700 A few initial library additions for eventual Hi-C support, refs #18842 diff --git src/inc/obscure.h src/inc/obscure.h index 3ce3323..9d95d17 100644 --- src/inc/obscure.h +++ src/inc/obscure.h @@ -16,30 +16,36 @@ int digitsBaseTen(int x); /* Return number of digits base 10. */ void sprintLongWithCommas(char *s, long long l); /* Print out a long number with commas a thousands, millions, etc. */ void printLongWithCommas(FILE *f, long long l); /* Print out a long number with commas a thousands, millions, etc. */ void sprintWithGreekByte(char *s, int slength, long long size); /* Numbers formatted with PB, TB, GB, MB, KB, B */ void printWithGreekByte(FILE *f, long long l); /* Print with formatting in gigabyte, terabyte, etc. */ +void sprintWithSiBaseUnit(char *s, int slength, long long size); +/* Numbers formatted with Pb, Tb, Gb, Mb, kb, bp */ + +void printWithSiBaseUnit(FILE *f, long long l); +/* Print with formatting in megabase, kilobase, etc. */ + void writeGulp(char *file, char *buf, int size); /* Write out a bunch of memory. */ void readInGulp(char *fileName, char **retBuf, size_t *retSize); /* Read whole file in one big gulp. */ void readAllWords(char *fileName, char ***retWords, int *retWordCount, char **retBuf); /* Read in whole file and break it into words. You need to freeMem both * *retWordCount and *retBuf when done. */ int countWordsInFile(char *fileName); /* Count number of words in file. */ struct slName *readAllLines(char *fileName); /* Read all lines of file into a list. (Removes trailing carriage return.) */