eb->e_sim[i].e = 0;
eb->e_sim[i].eav = 0;
eb->e_sim[i].esum = 0;
- eb->enm[i].name = strdup(enm[i-index]);
+ eb->enm[i].name = gmx_strdup(enm[i-index]);
if (unit != NULL)
{
- eb->enm[i].unit = strdup(unit);
+ eb->enm[i].unit = gmx_strdup(unit);
}
else
{
}
}
}
- eb->enm[i].unit = strdup(u);
+ eb->enm[i].unit = gmx_strdup(u);
}
}
{
e[i] = i;
sprintf(buf, "e%d", i);
- ce[i] = strdup(buf);
+ ce[i] = gmx_strdup(buf);
}
ie = get_ebin_space(eb, NE, ce);
add_ebin(eb, ie, NE, e, 0);
{
s[i] = i;
sprintf(buf, "s%d", i);
- cs[i] = strdup(buf);
+ cs[i] = gmx_strdup(buf);
}
is = get_ebin_space(eb, NS, cs);
add_ebin(eb, is, NS, s, 0);
{
t[i] = i;
sprintf(buf, "t%d", i);
- ct[i] = strdup(buf);
+ ct[i] = gmx_strdup(buf);
}
it = get_ebin_space(eb, NT, ct);
add_ebin(eb, it, NT, t, 0);