]> granicus.if.org Git - curl/commitdiff
removed the storenonprintable function as it isn't used anymore
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2000 13:18:30 +0000 (13:18 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2000 13:18:30 +0000 (13:18 +0000)
lib/mprintf.c

index 64d2360d2ef7dafd35272644d05e77d4e2ef9ae0..1ac98cae1548159d09b06391c17a32202411e029 100644 (file)
@@ -1001,33 +1001,6 @@ static int dprintf_formatf(
   return done;
 }
 
-static int StoreNonPrintable(int output, struct nsprintf *infop)
-{
-  /* If the character isn't printable then we convert it */
-  char work[64], *w;
-  int num = output;
-
-  w = &work[sizeof(work)];
-  *(--w) = (char)0;
-  for(; num > 0; num /= 10) {
-    *(--w) = lower_digits[num % 10];
-  }
-  if (infop->length + strlen(w) + 1 < infop->max)
-    {
-      infop->buffer[0] = '\\';
-      infop->buffer++;
-      infop->length++;
-      for (; *w; w++)
-       {
-         infop->buffer[0] = *w;
-         infop->buffer++;
-         infop->length++;
-       }
-      return output;
-    }
-  return -1;
-}
-
 /* fputc() look-alike */
 static int addbyter(int output, FILE *data)
 {