diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 13:18:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 13:18:30 +0000 |
commit | 56ac132401bf514374388fc1e2b193fc58429e2f (patch) | |
tree | 613afb85831a854d64b830169f70a277a6d93ef4 | |
parent | 44137c7932a6a628e0754bf4b1d79a526f6da1fa (diff) |
removed the storenonprintable function as it isn't used anymore
-rw-r--r-- | lib/mprintf.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 64d2360d2..1ac98cae1 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -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) { |