In this PR I add some g2c_fileio*() functions, which will perform reads and writes of different types of integer to GRIB2 files, including special negative number handling.
These functions replace the macros I was using for this purpose. (Which did not handle negative numbers.)
I also replace the function that reads/writes template numbers so it also handles negative and positive values correctly.
I am added more testing but this code is ready for review.
Fixes #373
In this PR I add some g2c_fileio*() functions, which will perform reads and writes of different types of integer to GRIB2 files, including special negative number handling.
These functions replace the macros I was using for this purpose. (Which did not handle negative numbers.)
I also replace the function that reads/writes template numbers so it also handles negative and positive values correctly.
I am added more testing but this code is ready for review.