next up previous contents
Next: ndb_cif_write_file Up: Function Description Previous: Function Description

ndb_cif_read_file

NAME ndb_cif_read_file

PROTOTYPE

#include "ndb_cifparse.h"

int ndb_cif_read_file(CifHandle *cf,
                      FILE *fp);
PURPOSE

ndb_cif_read_file reads an mmCIF data file into the CifHandle data structure specified by cf. All interaction with the data file takes place inside this function. Subsequent access to mmCIF data is managed by a set of methods that access memory resident data.

RECEIVES

 
Figure 1:  Functional diagram of the CIFPARSE utility library.
cf pointer to the CifHandle data structure where the mmCIF data file is loaded
fp pointer to the file descriptor for the mmCIF input file

RETURN VALUE

Returns the number of data blocks in the input file or 0 for failure.

REMARKS

Function does provide new value to the cf.

See also: ndb_cif_write_file



Olivera Tosic
6/12/2002