src/io.cpp
// Returns NULL if no file by this name exists
Returns NULL if no file by this name exists
Returns NULL if no file by this name exists
Reader *NewReaderMaybe(const char *filename) {
  struct stat stbuf;
  if (stat(filename, &stbuf) == -1) {
    return NULL;
  }
  long long int file_size = stbuf.st_size;
  return new Reader(filename, file_size);
}
Reader * NewReaderMaybe ( const char * filename ) { struct stat stbuf ; if ( stat ( filename , & stbuf ) == -1 ) { return NULL ; } long long int file_size = stbuf . st_size ; return new Reader ( filename , file_size ) ; }
Returns NULL if no file by this name exists
Returns NULL if no file by this name exists