#include "dist.h" main(int argc,char **argv) { SAY_HI_FIRST ; CITATION ; default_initialization(); { char * fn = STRG_AFTER_OPT_W_ENV("i","-"); file_records * f; if (fn[0] == '-') { f = open_pdb_stdin(0); } else { f = open_and_read_pdb(fn,0); } { char *outputfile = STRG_AFTER_OPT_W_ENV("o",NULL); FILE *ff = outputfile == NULL ? stdout : fopen(outputfile, "w") ; calculate_surface(f,DoubleAfterOption(argc,argv,"probe",1.4)); write_pdb_file(ff,f,IO_ONLY_SELECTED|IO_SURFACE); } } }