File list
Overview
These functions do CCP4-style parsing, as used for processing keywords of CCP4 programs, MTZ header records, etc.
Usage
The following code snippets illustrate how the functions might be used to read from stdin:
int ntok=0;
char line[201],*key;
RC = 0;
while (!RC) {
line[0] = '\0';
if (ntok < 1) {
RC = 111;
} else {
if (ntok != 2) {
ccperror ( 1,
"MINDIST requires a single numerical argument" );
RC = -100;
} else {
minDist = token[1].
value;
}
} else {
printf ( "Unrecognised keyword \"%s\"\n",token[0].fullstring );
RC = -118;
}
}
}
Examples
See the distributed programs NCONT and PDBCUR.