*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
{
int i, j, k, r, np, nn, starta, startr, npi, nni;
rvec *xt;
- char **pptr = NULL, **nptr = NULL, **paptr = NULL, **naptr = NULL;
+ char **pptr = nullptr, **nptr = nullptr, **paptr = nullptr, **naptr = nullptr;
snew(xt, atoms->nr);
const char *p_name, const char *n_name, char *grpname)
{
FILE *fpin, *fpout;
- char buf[STRLEN], buf2[STRLEN], *temp, **mol_line = NULL;
+ char buf[STRLEN], buf2[STRLEN], *temp, **mol_line = nullptr;
int line, i, nmol_line, sol_line, nsol_last;
gmx_bool bMolecules;
char temporary_filename[STRLEN];
{
line++;
std::strcpy(buf2, buf);
- if ((temp = std::strchr(buf2, '\n')) != NULL)
+ if ((temp = std::strchr(buf2, '\n')) != nullptr)
{
temp[0] = '\0';
}
if (buf2[0] == '[')
{
buf2[0] = ' ';
- if ((temp = std::strchr(buf2, '\n')) != NULL)
+ if ((temp = std::strchr(buf2, '\n')) != nullptr)
{
temp[0] = '\0';
}
int i, nw, nwa, nsa, nsalt, iqtot;
gmx_output_env_t *oenv;
t_filenm fnm[] = {
- { efTPR, NULL, NULL, ffREAD },
- { efNDX, NULL, NULL, ffOPTRD },
- { efSTO, "-o", NULL, ffWRITE },
+ { efTPR, nullptr, nullptr, ffREAD },
+ { efNDX, nullptr, nullptr, ffOPTRD },
+ { efSTO, "-o", nullptr, ffWRITE },
{ efTOP, "-p", "topol", ffOPTRW }
};
#define NFILE asize(fnm)
}
sfree(atoms.pdbinfo);
- atoms.pdbinfo = NULL;
+ atoms.pdbinfo = nullptr;
}
- write_sto_conf(ftp2fn(efSTO, NFILE, fnm), *top.name, &atoms, x, NULL, ePBC, box);
+ write_sto_conf(ftp2fn(efSTO, NFILE, fnm), *top.name, &atoms, x, nullptr, ePBC, box);
return 0;
}