130 static char pdbcode[8];
136 if((length = strlen(filename))!=0)
139 if((temp = (
char *)malloc((length+1)*
sizeof(
char)))==
NULL)
141 strcpy(temp,filename);
148 for(pos=length-1; pos>=0; pos--)
150 if((temp[pos] ==
':') ||
151 (temp[pos] ==
']') ||
152 (temp[pos] ==
'/') ||
164 if((p=strstr(p,
"pdb"))!=
NULL)
172 strcpy(pdbcode, p+3);
191 if((p=strstr(p,
"p"))!=
NULL)
199 strcpy(pdbcode, p+3);
215 for(p=start; *p!=
'\0'; p++)
230 if((p=strstr(start,
".pdb"))!=
NULL)
243 if((p=strstr(start,
".ent"))!=
NULL)
256 strcpy(pdbcode,
"XXXX");
262 strcpy(pdbcode,
"XXXX");
char * blFNam2PDB(char *filename)