=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/printf/printf.1,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/printf/printf.1 1998/08/25 13:35:52 1.4 --- src/usr.bin/printf/printf.1 1998/09/27 16:57:50 1.5 *************** *** 1,4 **** ! .\" $OpenBSD: printf.1,v 1.4 1998/08/25 13:35:52 deraadt Exp $ .\" Copyright (c) 1989, 1990 The Regents of the University of California. .\" All rights reserved. .\" --- 1,4 ---- ! .\" $OpenBSD: printf.1,v 1.5 1998/09/27 16:57:50 aaron Exp $ .\" Copyright (c) 1989, 1990 The Regents of the University of California. .\" All rights reserved. .\" *************** *** 46,52 **** .Ar format .Op Ar arguments ... .Sh DESCRIPTION ! .Nm Printf formats and prints its arguments, after the first, under control of the .Ar format . --- 46,52 ---- .Ar format .Op Ar arguments ... .Sh DESCRIPTION ! .Nm printf formats and prints its arguments, after the first, under control of the .Ar format . *************** *** 129,135 **** .Cm c , .Cm d , and ! .Cm s , formats, this option has no effect. For the .Cm o formats the precision of the number is increased to force the first --- 129,135 ---- .Cm c , .Cm d , and ! .Cm s formats, this option has no effect. For the .Cm o formats the precision of the number is increased to force the first *************** *** 145,151 **** .Cm f , .Cm g , and ! .Cm G , formats, the result will always contain a decimal point, even if no digits follow the point (normally, a decimal point only appears in the results of those formats if a digit follows the decimal point). For --- 145,151 ---- .Cm f , .Cm g , and ! .Cm G formats, the result will always contain a decimal point, even if no digits follow the point (normally, a decimal point only appears in the results of those formats if a digit follows the decimal point). For *************** *** 153,172 **** and .Cm G formats, trailing zeros are not removed from the result as they ! would otherwise be; .It Cm \&\- A minus sign `\-' which specifies .Em left adjustment ! of the output in the indicated field; .It Cm \&+ A `+' character specifying that there should always be a sign placed before the number when using signed formats. .It Sq \&\ \& A space specifying that a blank should be left before a positive number ! for a signed format. A `+' overrides a space if both are used; .It Cm \&0 A zero `0' character indicating that zero-padding should be used ! rather than blank-padding. A `\-' overrides a `0' if both are used; .El .It "Field Width:" An optional digit string specifying a --- 153,172 ---- and .Cm G formats, trailing zeros are not removed from the result as they ! would otherwise be. .It Cm \&\- A minus sign `\-' which specifies .Em left adjustment ! of the output in the indicated field. .It Cm \&+ A `+' character specifying that there should always be a sign placed before the number when using signed formats. .It Sq \&\ \& A space specifying that a blank should be left before a positive number ! for a signed format. A `+' overrides a space if both are used. .It Cm \&0 A zero `0' character indicating that zero-padding should be used ! rather than blank-padding. A `\-' overrides a `0' if both are used. .El .It "Field Width:" An optional digit string specifying a *************** *** 174,180 **** if the output string has fewer characters than the field width it will be blank-padded on the left (or right, if the left-adjustment indicator has been given) to make up the field width (note that a leading zero ! is a flag, but an embedded zero is part of a field width); .It Precision: An optional period, .Sq Cm \&.\& , --- 174,180 ---- if the output string has fewer characters than the field width it will be blank-padded on the left (or right, if the left-adjustment indicator has been given) to make up the field width (note that a leading zero ! is a flag, but an embedded zero is part of a field width). .It Precision: An optional period, .Sq Cm \&.\& , *************** *** 187,193 **** .Cm f formats, or the maximum number of characters to be printed from a string; if the digit string is missing, the precision is treated ! as zero; .It Format: A character which indicates the type of format to use (one of .Cm diouxXfEgGbcs ) . --- 187,193 ---- .Cm f formats, or the maximum number of characters to be printed from a string; if the digit string is missing, the precision is treated ! as zero. .It Format: A character which indicates the type of format to use (one of .Cm diouxXfEgGbcs ) . *************** *** 262,269 **** a field; padding takes place only if the specified field width exceeds the actual width. .Sh RETURN VALUES ! .Nm Printf ! exits 0 on success, 1 on failure. .Sh SEE ALSO .Xr echo 1 , .Xr printf 3 --- 262,269 ---- a field; padding takes place only if the specified field width exceeds the actual width. .Sh RETURN VALUES ! .Nm printf ! exits 0 on success or 1 on failure. .Sh SEE ALSO .Xr echo 1 , .Xr printf 3