wgrib is a GRIB decoder written by Wesley Ebisuzaki at NCEP. We have some code and executables here, but you can access the complete library and documentation at http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html.