* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-#include "filenm.h"
+#include "gmxpre.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "filenm.h"
#include <stdio.h>
#include <string.h>
*extpos = '\0';
sprintf(newname, "%s%s.%s", buf, suffix, extpos + 1);
sfree(fnm[i].fns[j]);
- fnm[i].fns[j] = strdup(newname);
+ fnm[i].fns[j] = gmx_strdup(newname);
}
}
}
ret[i] = tfn[i]; /* just directly copy all non-string fields */
if (tfn[i].opt)
{
- ret[i].opt = strdup(tfn[i].opt);
+ ret[i].opt = gmx_strdup(tfn[i].opt);
}
else
{
if (tfn[i].fn)
{
- ret[i].fn = strdup(tfn[i].fn);
+ ret[i].fn = gmx_strdup(tfn[i].fn);
}
else
{
snew(ret[i].fns, tfn[i].nfiles);
for (j = 0; j < tfn[i].nfiles; j++)
{
- ret[i].fns[j] = strdup(tfn[i].fns[j]);
+ ret[i].fns[j] = gmx_strdup(tfn[i].fns[j]);
}
}
}