Hello!
I would like to extract letters from files. I am using:
sscanf (line, "%4c", atoms[total_lines].name);
atoms[total_lines].element[0] = atoms[total_lines].name[0];
if (isalpha(atoms[total_lines].name[1])) {
atoms[total_lines].element[1] = atoms[total_lines].name[1];
atoms[total_lines].element[2] = '\0';
} else {
atoms[total_lines].element[1] = '\0';
}
Now I have a problem. Second leter can be capital or small. CA or Ni. I
must read only those with small second letter.
Help please
CCCao
--
miha