Skip to content
Snippets Groups Projects
Commit 56ac1324 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

removed the storenonprintable function as it isn't used anymore

parent 44137c79
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment