#include "cifparse.h"
int ndb_cif_write_dic_by_format(CifHandle *dic,
FILE *fp
CifHandle *ddl,
CifHandle *format,
int implicit);
ndb_cif_write_dic_by_format writes all of the data blocks loaded into the CifHande data structure specified by dic to the file pointed to by the input file descriptor. The structure of the save frames in the output file depends on the format. Also, if the parameter implicit = 1, then all columns are shown. If implicit = 0, then the implicit columns are avoided. Information about imlicitly generated column can be found in the CifHandle data structure specified by ddl.
dic | pointer to the CifHandle data structure where the dictionary/cif file is loaded |
ddl | pointer to the CifHandle data structure where the ddl/dictionary is loaded |
fp | pointer to the file descriptor for the output file |
format | pointer to the CifHandle data structure where the format is loaded |
implicit | identifies does imlicit columns will be print or not |
Returns the number of data blocks written or 0 for failure.
See also: | ndb_cif_read_dic |
---|---|
ndb_cif_read_dic_with_format |