50528cd3bd4e0424cf8ef9a11fe72023cb2b6433 kent Tue Mar 3 12:24:42 2015 -0800 Adding printWithGreekByte, just a wrapper around sprintWithGreekByte. diff --git src/inc/obscure.h src/inc/obscure.h index 0142093..ec5a71b 100644 --- src/inc/obscure.h +++ src/inc/obscure.h @@ -13,30 +13,33 @@ int digitsBaseTwo(unsigned long x); /* Return base two # of digits. */ 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 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.) */