*
* 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.
/* Skip blank or comment-only lines */
do
{
- if (fgets2(buf, STRLEN, in) != NULL)
+ if (fgets2(buf, STRLEN, in) != nullptr)
{
strip_comment(buf);
trim(buf);
{
tp = rtp->atom[j].type;
tpnm = get_atomtype_name(tp, atype);
- if (tpnm == NULL)
+ if (tpnm == nullptr)
{
gmx_fatal(FARGS, "Incorrect atomtype (%d)", tp);
}
/* Read Atoms */
maxentries = 0;
- r0->atom = NULL;
- r0->atomname = NULL;
- r0->cgnr = NULL;
+ r0->atom = nullptr;
+ r0->atomname = nullptr;
+ r0->cgnr = nullptr;
i = 0;
- while (get_a_line(in, line, STRLEN) && (strchr(line, '[') == NULL))
+ while (get_a_line(in, line, STRLEN) && (strchr(line, '[') == nullptr))
{
if (sscanf(line, "%s%s%lf%d", buf, buf1, &q, &cg) != 4)
{
int j, n, ni, maxrb;
maxrb = rtp->rb[bt].nb;
- while (get_a_line(in, line, STRLEN) && (strchr(line, '[') == NULL))
+ while (get_a_line(in, line, STRLEN) && (strchr(line, '[') == nullptr))
{
if (rtp->rb[bt].nb >= maxrb)
{
}
for (; j < MAXATOMLIST; j++)
{
- rtp->rb[bt].b[rtp->rb[bt].nb].a[j] = NULL;
+ rtp->rb[bt].b[rtp->rb[bt].nb].a[j] = nullptr;
}
while (isspace(line[n]))
{