Lines Matching refs:left

279 	     on the left with zeros rather than blanks.  If a
284 value is to be left adjusted on the field boundary. Except
286 the right with blanks, rather than on the left with
290 - A space, specifying that a blank should be left before
301 with spaces on the left (or right, if the
302 left-adjustment flag has been given) to fill out
345 field width or precision. A negative field width is treated as a left
358 it is padded on the left with zeros.
540 static void dopr( int visible_control, char **buffer, int *left,
542 static void fmtstr( int visible_control, char **buffer, int *left,
544 static void fmtnum( char **buffer, int *left,
548 static void fmtquad( char **buffer, int *left,
552 static void fmtdouble( char **buffer, int *left,
555 static void dostr( char **buffer, int *left, char *str );
556 static void dopr_outch( char **buffer, int *left, int c );
565 int left;
568 left = count;
571 dopr( 1, &buffer, &left, fmt, args );
572 /* fprintf(stderr,"str 0x%x, buffer 0x%x, count %d, left %d\n",
573 (int)str, (int)buffer, count, left ); */
575 if( left > 0 ){
576 str[count-left] = 0;
581 return(count - left);
591 int left;
594 left = count;
597 dopr( 0, &buffer, &left, fmt, args );
598 /* fprintf(stderr,"str 0x%x, buffer 0x%x, count %d, left %d\n",
599 (int)str, (int)buffer, count, left ); */
601 if( left > 0 ){
602 str[count-left] = 0;
607 return(count - left);
658 static void dopr( int visible_control, char **buffer, int *left, const char *format, va_list args )
685 dostr( buffer, left, "**end of format**" );
710 dostr( buffer, left, "*no quad_t support *");
728 fmtquad( buffer, left, &value,base,signed_val, ljust, len, zpad, precision );
759 fmtnum( buffer, left, &value,base,signed_val, ljust, len, zpad, precision ); break;
762 fmtstr( visible_control, buffer, left, strvalue,ljust,len, zpad, precision );
769 fmtstr( 0, buffer, left, b,ljust,len, zpad, precision );
774 fmtdouble( buffer, left, ch, dval,ljust,len, zpad, precision ); break;
777 fmtstr( visible_control, buffer, left,
781 case '%': dopr_outch( buffer, left, ch ); continue;
783 dostr( buffer, left, "???????" );
788 dopr_outch( buffer, left, ch );
796 * - = left justify (ljust)
801 fmtstr( int visible_control, char **buffer, int *left,
823 dopr_outch( buffer, left, ' ' );
829 dopr_outch(buffer, left, '^');
832 dopr_outch(buffer, left, c);
835 dopr_outch( buffer, left, ' ' );
841 fmtnum( char **buffer, int *left,
883 dopr_outch( buffer, left, signvalue );
888 dopr_outch( buffer, left, zpad );
893 dopr_outch( buffer, left, ' ' );
896 if( signvalue ) dopr_outch( buffer, left, signvalue );
897 while( place > 0 ) dopr_outch( buffer, left, convert[--place] );
899 dopr_outch( buffer, left, ' ' );
907 fmtquad( char **buffer, int *left,
947 dopr_outch( buffer, left, signvalue );
952 dopr_outch( buffer, left, zpad );
957 dopr_outch( buffer, left, ' ' );
960 if( signvalue ) dopr_outch( buffer, left, signvalue );
961 while( place > 0 ) dopr_outch( buffer, left, convert[--place] );
963 dopr_outch( buffer, left, ' ' );
979 fmtdouble( char **buffer, int *left,
1007 dostr( buffer, left, convert );
1010 static void dostr( char **buffer, int *left, char *str )
1012 if(str)while(*str) dopr_outch( buffer, left, *str++ );
1015 static void dopr_outch( char **buffer, int *left, int c )
1017 if( *left > 0 ){
1020 *left -= 1;