comparison th_string.c @ 389:0e5511015bd2

10L.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2016 13:45:11 +0200
parents 3f878ae15050
children eb79d11d8d40
comparison
equal deleted inserted replaced
388:3f878ae15050 389:0e5511015bd2
411 } 411 }
412 412
413 // Get field width 413 // Get field width
414 if (*fmt == '*') 414 if (*fmt == '*')
415 { 415 {
416 fmt++;
416 f_width = va_arg(ap, int); 417 f_width = va_arg(ap, int);
417 if (f_width < 0) 418 if (f_width < 0)
418 { 419 {
419 f_flags |= TH_PF_LEFT; 420 f_flags |= TH_PF_LEFT;
420 f_width = -f_width; 421 f_width = -f_width;
430 if (*fmt == '.') 431 if (*fmt == '.')
431 { 432 {
432 fmt++; 433 fmt++;
433 if (*fmt == '*') 434 if (*fmt == '*')
434 { 435 {
436 fmt++;
435 f_prec = va_arg(ap, int); 437 f_prec = va_arg(ap, int);
436 } 438 }
437 else 439 else
438 { 440 {
439 // If no digit after '.', precision is to be 0 441 // If no digit after '.', precision is to be 0