mirror of
https://github.com/curl/curl.git
synced 2026-07-27 10:07:15 +03:00
CURLOPT_DEBUGFUNCTION.3: Fix example
This commit is contained in:
parent
91cfcc5d6f
commit
2ac3f427f7
1 changed files with 4 additions and 2 deletions
|
|
@ -103,8 +103,10 @@ void dump(const char *text,
|
|||
}
|
||||
|
||||
/* show data on the right */
|
||||
for(c = 0; (c < width) && (i+c < size); c++)
|
||||
fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream);
|
||||
for(c = 0; (c < width) && (i+c < size); c++) {
|
||||
char x = (ptr[i+c] >= 0x20 && ptr[i+c] < 0x80) ? ptr[i+c] : '.';
|
||||
fputc(x, stream);
|
||||
}
|
||||
|
||||
fputc('\\n', stream); /* newline */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue