GLYLIB
0.3.0b
|
00001 #include <stdlib.h> 00002 #include <molecules.h> 00003 00004 coord_3D ** 00005 atoms_to_coord_list(atom **atoms, int num_atoms) 00006 { 00007 int i; 00008 00009 coord_3D **coords = (coord_3D **)malloc(num_atoms * sizeof(coord_3D *)); 00010 for(i=0; i<num_atoms; i++) 00011 coords[i] = &atoms[i]->x; 00012 00013 return coords; 00014 } 00015