#ifndef BINREAD_H #define BINREAD_H #ifdef __cplusplus extern "C" { #endif typedef struct Vec_T { double x, y, z; } Vec; /* * bfname - (string) name of NAMD binary restart file * n - (pointer to an integer) returns the number of coordinates * * Successful read will return an allocated buffer containing the * atomic coordinates read from file. The caller must free this * buffer. The number of coordinates will be returned within n. * Failures are indicated by NULL return value. * * This routine automatically corrects endianism. */ Vec *binread(const char *bfname, int *n); #ifdef __cplusplus } #endif #endif /* BINREAD_H */