9 date 92.12.15.00.20.22; author jromine; state Exp;
14 date 92.01.31.21.57.33; author jromine; state Exp;
19 date 92.01.31.21.57.13; author jromine; state Exp;
33 @/* sprintb.c - sprintf a %b string */
35 static char ident[] = "@@(#)$Id: sprintb.c,v 1.2 1992/01/31 21:57:33 jromine Exp jromine $";
42 char *sprintb (buffer, v, bits)
43 register char *buffer,
52 (void) sprintf (buffer, bits && *bits == 010 ? "0%o" : "0x%x", v);
53 bp = buffer + strlen (buffer);
55 if (bits && *++bits) {
59 if (v & (1 << (i - 1))) {
62 for (; (c = *bits) > 32; bits++)
66 for (; *bits > 32; bits++)
84 static char ident[] = "@@(#)$Id: m_getfld.c,v 1.10 1992/01/31 21:54:32 jromine Exp $";