349{
350 int perc;
352 int curBarLen;
353 static int maxBarLen;
354 char spec1[64], spec3[64];
355 static char bar[256];
357 int secsLeft, minLeft;
358 static const char *uStr;
359 static double uMult;
361 const char *rStr;
362
368 return;
369 }
375 );
376
377 for (
i=0;
i < (
int)
sizeof(
bar) - 1;
i++)
380
381
382
383
384
385
388 maxBarLen--;
389
390
391#if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD)
392 (
void)
sprintf(spec1,
" 0 %%%ds %%lld bytes. ETA: --:--", maxBarLen);
393
394
395
396
398#elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD)
399 (
void)
sprintf(spec1,
" 0 %%%ds %%qd bytes. ETA: --:--", maxBarLen);
401#elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D)
402 (
void)
sprintf(spec1,
" 0 %%%ds %%I64d bytes. ETA: --:--", maxBarLen);
404#else
405 (
void)
sprintf(spec1,
" 0 %%%ds %%ld bytes. ETA: --:--", maxBarLen);
407#endif
409 break;
410
412
414
415
416
417
418
419 if (curBarLen < 1)
420 curBarLen = 1;
421
422 bar[curBarLen - 1] =
'>';
423 bar[curBarLen] =
'\0';
424
425
427
428#if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD)
429 (
void)
sprintf(spec3,
"%%%ds %%lld bytes. %s%%3d:%%02d",
430 maxBarLen - curBarLen,
431 "ETA:"
432 );
433#elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD)
434 (
void)
sprintf(spec3,
"%%%ds %%qd bytes. %s%%3d:%%02d",
435 maxBarLen - curBarLen,
436 "ETA:"
437 );
438#elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D)
439 (
void)
sprintf(spec3,
"%%%ds %%I64d bytes. %s%%3d:%%02d",
440 maxBarLen - curBarLen,
441 "ETA:"
442 );
443#else
444 (
void)
sprintf(spec3,
"%%%ds %%ld bytes. %s%%3d:%%02d",
445 maxBarLen - curBarLen,
446 "ETA:"
447 );
448#endif
449
450
453 minLeft = secsLeft / 60;
454 secsLeft = secsLeft - (minLeft * 60);
455 if (minLeft > 999) {
456 minLeft = 999;
457 secsLeft = 59;
458 }
459
460
464 "",
466 minLeft,
467 secsLeft
468 );
469
470 bar[curBarLen - 1] =
'=';
471 bar[curBarLen] =
'=';
473
475 break;
479
483 ((
long) cip->
sec / 60L) % 60L,
484 ((
long) cip->
sec % 60L),
486 rStr
487 );
488#ifdef ncftp
491
494 }
495#endif
496 break;
497 }
498}
#define STRNCPY(dst, src, n)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
void LogXfer(const char *const mode, const char *const url)
const char * tcap_reverse
void PrSizeAndRateMeter(const FTPCIPtr cip, int mode)
char * FileToURL(char *url, size_t urlsize, const char *const fn, const char *const rcwd, const char *const startdir, const char *const user, const char *const pass, const char *const hname, const unsigned int port)
#define sprintf(buf, format,...)
void SetXtermTitle(const char *const fmt,...)
char * startingWorkingDirectory
FTPProgressMeterProc progress