Update version info for release v4.6.1 (#2122)
[WRF.git] / external / io_grib1 / MEL_grib1 / test_set_bytes.c
blob39417ce5ae896f15012f57e389766c0c3e217f1f
1 #include <stdio.h>
3 main()
5 int i;
6 long longint = -10342;
7 char charstring[sizeof(long)];
8 char charstring_orig[sizeof(long)];
10 memcpy(charstring_orig,(void *)&longint,8);
11 set_bytes(longint,3,charstring);
12 for (i=0; i < sizeof(long); i++)
14 fprintf(stderr,"new: %d: %d\n",i,charstring[i]);
15 /* fprintf(stderr,"orig: %d: %d\n",i,charstring_orig[i]); */