X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fsnprintb.c;h=376d4b05c4d84fed0560aa4de1bf84ecfaa1359b;hp=baab61f4bc2ed026ff7cefbb4cd743b4be9528d4;hb=18591f8e001ecedbee48a51c1d1f08ebaa1c15c8;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/snprintb.c b/sbr/snprintb.c index baab61f..376d4b0 100644 --- a/sbr/snprintb.c +++ b/sbr/snprintb.c @@ -1,21 +1,21 @@ /* - * snprintb.c -- snprintf a %b string - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** snprintb.c -- snprintf a %b string +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include char * -snprintb (char *buffer, size_t n, unsigned v, char *bits) +snprintb(char *buffer, size_t n, unsigned v, char *bits) { - register int i, j; - register char c, *bp; + int i, j; + char c, *bp; - snprintf (buffer, n, bits && *bits == 010 ? "0%o" : "0x%x", v); + snprintf(buffer, n, bits && *bits == 010 ? "0%o" : "0x%x", v); bp = buffer + strlen(buffer); if (bits && *++bits) {