Array of long support.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
This commit is contained in:
Poul-Henning Kamp 2000-07-11 21:59:54 +00:00
parent 6b55e51be0
commit aa02fb5729

View File

@ -415,10 +415,16 @@ show_var(int *oid, int nlen)
if (!nflag)
printf("%s: ", name);
fmt++;
val = "";
while (len >= sizeof(long)) {
if(*fmt == 'U')
printf("%lu", *(unsigned long *)p);
printf("%s%lu", val, *(unsigned long *)p);
else
printf("%ld", *(long *)p);
printf("%s%ld", val, *(long *)p);
val = " ";
len -= sizeof (int);
p += sizeof (int);
}
return (0);
case 'P':