* 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 "gromacs/fileio/xvgr.h"
+#include "gmxpre.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "xvgr.h"
+
+#include "config.h"
-#include <string.h>
#include <ctype.h>
+#include <string.h>
#include <time.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
+#include "gromacs/fileio/gmxfio.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/legacyheaders/oenv.h"
-
-#include "gromacs/fileio/gmxfio.h"
#include "gromacs/math/vec.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/exceptions.h"
ptr1 = strchr(ptr0, '"');
if (ptr1 != NULL)
{
- str = strdup(ptr0);
+ str = gmx_strdup(ptr0);
str[ptr1-ptr0] = '\0';
}
else
{
- str = strdup("");
+ str = gmx_strdup("");
}
}
else
{
- str = strdup("");
+ str = gmx_strdup("");
}
return str;