next up previous contents
Next: ndb_cif_read_dic Up: Function Description Previous: ndb_cif_read_ddl_with_format

ndb_cif_write_ddl_by_format

NAME ndb_cif_write_ddl_by_format

PROTOTYPE

#include "cifparse.h"

int ndb_cif_write_ddl_by_format(CifHandle *ddl,
                                FILE *fp
                                CifHandle *format);
PURPOSE

ndb_cif_write_ddl_by_format writes all of the data blocks loaded into the CifHande data structure specified by ddl to the file pointed to by the input file descriptor. Format of save frames is defined by input parameter format.

RECEIVES

ddl pointer to the CifHandle data structure where the data is loaded
fp pointer to the file descriptor for the mmCIF output file
format pointer to the CifHandle data structure where the format is loaded

RETURN VALUE

Returns the number of data blocks written or 0 for failure.

REMARKS

See also: ndb_cif_read_ddl
  ndb_cif_read_ddl_with_format



Olivera Tosic
6/12/2002