NAMD
Functions | Variables
parm.C File Reference
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include "strlib.h"
#include "common.h"
#include "InfoStream.h"
#include "parm.h"

Go to the source code of this file.

Functions

static int readtoeoln (FILE *f)
 

Variables

static int debug = 0
 

Function Documentation

static int readtoeoln ( FILE *  f)
static

Definition at line 51 of file parm.C.

Referenced by parm::read_fortran_12I6(), and parm::readparm().

51  {
52  char c;
53 
54  /* skip to eoln */
55  while((c = getc(f)) != '\n') {
56  if (c == EOF)
57  return -1;
58  }
59 
60  return 0;
61 }

Variable Documentation

int debug = 0
static