INNER CODE UNIT · C
n_old
mittinatten/freesasa · src/coord.c:101
n_old = c->n;
xyz_old = c->xyz;
if (n == 0) return FREESASA_SUCCESS;
c->xyz = (double *)realloc(c->xyz, sizeof(double) * 3 * (c->n + n));
if (c->xyz == NULL) {
free(xyz_old);
return mem_fail();
}
c->n += n;
memcpy(&(c->xyz[3 * n_old]), xyz, sizeof(double) * n * 3);
return FREESASA_SUCCESS;
}
int freesasa_coord_append_xyz(coord_t *c,
const double *x,