1 typedef unsigned short ushort
;
2 typedef unsigned long ulong
;
15 while ( (c
=getc()) != '\r' && len
< 64){
23 char *ctable
= "0123456789ABCDEF";
34 int printo(x
) ushort x
;
76 int printli(x
) ulong x
;
99 int printx(x
) ushort x
;
119 int printlx(x
) ulong x
;
130 pns(s
, n
) char *s
; int n
;
148 int align(x
) ulong x
;
165 int printl(x
) ulong x
;
169 putc('0'); putc(' ');
176 int printf(fmt
) char *fmt
;
183 ip
= (int *)&fmt
+ 1;
195 case 'd' : printi(*ip
); break;
196 case 'x' : printx(*ip
); break;
197 case 'l' : up
= (ulong
*)ip
;
198 printl(*up
); ip
++; break;
199 case 's' : prints(*ip
); break;
200 case 'c' : putc(*ip
); break;