NAMD
Macros | Functions
PDB.C File Reference
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "common.h"
#include "PDB.h"
#include "SortableResizeArray.h"

Go to the source code of this file.

Macros

#define LINESIZE   100
 

Functions

static int readtoeoln (FILE *f)
 

Macro Definition Documentation

◆ LINESIZE

#define LINESIZE   100

Definition at line 691 of file PDB.C.

Referenced by PDB::PDB().

Function Documentation

◆ readtoeoln()

static int readtoeoln ( FILE *  f)
static

Definition at line 538 of file PDB.C.

Referenced by PDB::PDB().

538  {
539  char c;
540 
541  /* skip to eoln */
542  while((c = getc(f)) != '\n') {
543  if (c == EOF)
544  return -1;
545  }
546 
547  return 0;
548 }