Gromacs
2018.8
|
#include "gromacs/utility/futil.h"
Low-level utility for converting 64 bit int to int (the size of which is hardware dependent), printing a warning if an overflow will occur.
Functions | |
int | gmx_int64_to_int (gmx_int64_t step, const char *warn) |
Convert a gmx_int64_t value to int. More... | |
int gmx_int64_to_int | ( | gmx_int64_t | step, |
const char * | warn | ||
) |
Convert a gmx_int64_t value to int.
[in] | step | The step number (or other int64) |
[in] | warn | If warn!=NULL a warning message will be written to stderr when step does not fit in an int, the first line is: "WARNING during %s:", where warn is printed in s. |