24 #define ENABLE_CURLX_PRINTF 38 #define MAX_BARLENGTH 256 79 while(thisblock > prevblock) {
84 else if(point != bar->
prev) {
85 frac = (double)point / (
double)total;
86 percent = frac * 100.0;
87 barwidth = bar->
width - 7;
88 num = (int) (((
double)barwidth) * frac);
91 memset(line,
'#', num);
93 snprintf(format,
sizeof(format),
"\r%%-%ds %%5.1f%%%%", barwidth);
129 long num = strtol(colp, &endptr, 10);
130 if((endptr != colp) && (endptr == colp + strlen(colp)) && (num > 0))
131 bar->
width = (int)num;
146 bar->
width = scr_size[0] - 1;
static struct timeval tvnow(void)
CURL_EXTERN void curl_free(void *p)
static long tvdiff(struct timeval newer, struct timeval older)
struct GlobalConfig * global
CURL_TYPEOF_CURL_OFF_T curl_off_t