comparison src/doprnt.c @ 367:a4f53d9b3154 r21-1-13

Import from CVS: tag r21-1-13
author cvs
date Mon, 13 Aug 2007 11:01:07 +0200
parents 4711e16a8e49
children cc15677e0335
comparison
equal deleted inserted replaced
366:83d76f480a59 367:a4f53d9b3154
650 strcat (constructed_spec, "+"); 650 strcat (constructed_spec, "+");
651 if (spec->space_flag) 651 if (spec->space_flag)
652 strcat (constructed_spec, " "); 652 strcat (constructed_spec, " ");
653 if (spec->number_flag) 653 if (spec->number_flag)
654 strcat (constructed_spec, "#"); 654 strcat (constructed_spec, "#");
655 tem = strlen (constructed_spec);
655 if (spec->precision >= 0) 656 if (spec->precision >= 0)
656 { 657 {
657 strcat (constructed_spec, "."); 658 strcat (constructed_spec, ".");
658 long_to_string (constructed_spec + strlen (constructed_spec), 659 long_to_string (constructed_spec + strlen (constructed_spec),
659 spec->precision); 660 spec->precision);
660 } 661 }
661 sprintf (constructed_spec + (tem = strlen (constructed_spec)), "%c", ch); 662 sprintf (constructed_spec + strlen (constructed_spec), "%c", ch);
662 663
663 /* sprintf the mofo */ 664 /* sprintf the mofo */
664 /* we have to use separate calls to sprintf(), rather than 665 /* we have to use separate calls to sprintf(), rather than
665 a single big conditional, because of the different types 666 a single big conditional, because of the different types
666 of the arguments */ 667 of the arguments */