*
* 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 xdr3dfcoord(XDR *xdrs, float *fp, int *size, float *precision)
{
- int *ip = NULL;
- int *buf = NULL;
+ int *ip = nullptr;
+ int *buf = nullptr;
gmx_bool bRead;
/* preallocate a small buffer and ip on the stack - if we need more
bufsize = static_cast<int>(size3 * 1.2);
ip = reinterpret_cast<int *>(malloc(size3 * sizeof(*ip)));
buf = reinterpret_cast<int *>(malloc(bufsize * sizeof(*buf)));
- if (ip == NULL || buf == NULL)
+ if (ip == nullptr || buf == nullptr)
{
fprintf(stderr, "malloc failed\n");
exit(1);
bufsize = static_cast<int>(size3 * 1.2);
ip = reinterpret_cast<int *>(malloc(size3 * sizeof(*ip)));
buf = reinterpret_cast<int *>(malloc(bufsize * sizeof(*buf)));
- if (ip == NULL || buf == NULL)
+ if (ip == nullptr || buf == nullptr)
{
fprintf(stderr, "malloc failed\n");
exit(1);