tmp.i = htonl(val); /* ensure that that we're big-endian */
for (a = 0; a < (int) sizeof(int) - 1; a++) /* skip superfluous octets */
if (!((tmp.c[a] == 0 && !(tmp.c[a+1] & 0X80)) ||
(tmp.c[a] == 0XFF && (tmp.c[a+1] & 0X80))))
break;
len = sizeof(int) - a;
tmp.i = htonl(val); /* ensure that that we're big-endian */
for (a = 0; a < (int) sizeof(int) - 1; a++) /* skip superfluous octets */
if (!((tmp.c[a] == 0 && !(tmp.c[a+1] & 0X80)) ||
(tmp.c[a] == 0XFF && (tmp.c[a+1] & 0X80))))
break;
len = sizeof(int) - a;