RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: ndb_cif_item_values_strncmp Up: Function Description Previous: ndb_cif_get_item_value_length

ndb_cif_item_value_strncmp

NAME ndb_cif_item_value_strncmp

PROTOTYPE

#include "cifparse.h"

int ndb_cif_item_value_strncmp(CifHandle *cf,
                               const int catId,
                               const int colId,
                               const int rowId,
                               const int startPos,
                               char fieldValue[maxFieldLen],
                               const int maxFieldLen);
PURPOSE

ndb_cif_item_value_strncmp compares the item value in the CifHandle data stucture specified by cf in the category catId, in the column colId in the row rowId with the string specified by fieldValue ,which must be of the fixed length maxFieldLen. Starts at the position startPos in the row, and compares maxFiledLen charasters.

RECEIVES

cf pointer to the CifHandle data structure
catId identifies the category
colId identifies the column
rowId identifies the row
startPos number of the start position
fieldValue pointer to the string to be compared
maxFieldLen the length of the string fieldValue

RETURN VALUE

Returns 0 if the srings are equal, or nonzero value if aren't.

REMARKS

See also: ndb_cif_item_values_strncmp



Olivera Tosic
6/12/2002

 

© RCSB PDB