Array of long support.
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
This commit is contained in:
parent
6b55e51be0
commit
aa02fb5729
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user