CURLOPT_DEBUGFUNCTION.3: Fix example
This commit is contained in:
parent
91cfcc5d6f
commit
2ac3f427f7
@ -103,8 +103,10 @@ void dump(const char *text,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* show data on the right */
|
/* show data on the right */
|
||||||
for(c = 0; (c < width) && (i+c < size); c++)
|
for(c = 0; (c < width) && (i+c < size); c++) {
|
||||||
fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream);
|
char x = (ptr[i+c] >= 0x20 && ptr[i+c] < 0x80) ? ptr[i+c] : '.';
|
||||||
|
fputc(x, stream);
|
||||||
|
}
|
||||||
|
|
||||||
fputc('\\n', stream); /* newline */
|
fputc('\\n', stream); /* newline */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user