Antonie
|
#include "misc.hh"
#include <string.h>
#include <stdexcept>
#include <algorithm>
#include <sys/types.h>
#include <sys/stat.h>
Functions | |
bool | stringfgets (FILE *fp, std::string *line) |
read a line of text from a FILE* to a std::string, returns false on 'no data' | |
uint64_t | filesize (const char *name) |
char * | sfgets (char *p, int num, FILE *fp) |
void | chomp (char *line) |
void | reverseNucleotides (std::string *nucleotides) |
void chomp | ( | char * | line | ) |
uint64_t filesize | ( | const char * | name | ) |
void reverseNucleotides | ( | std::string * | nucleotides | ) |
char* sfgets | ( | char * | p, |
int | num, | ||
FILE * | fp | ||
) |
bool stringfgets | ( | FILE * | fp, |
std::string * | line | ||
) |
read a line of text from a FILE* to a std::string, returns false on 'no data'