printf.1 (221026) | printf.1 (222418) |
---|---|
1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 | 1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 |
32.\" $FreeBSD: head/usr.bin/printf/printf.1 221026 2011-04-25 19:15:58Z jilles $ | 32.\" $FreeBSD: head/usr.bin/printf/printf.1 222418 2011-05-28 11:37:47Z jilles $ |
33.\" | 33.\" |
34.Dd April 25, 2011 | 34.Dd May 28, 2011 |
35.Dt PRINTF 1 36.Os 37.Sh NAME 38.Nm printf 39.Nd formatted output 40.Sh SYNOPSIS 41.Nm 42.Ar format Op Ar arguments ... --- 20 unchanged lines hidden (view full) --- 63.Cm s ; 64otherwise it is evaluated as a C constant, with the following extensions: 65.Pp 66.Bl -bullet -offset indent -compact 67.It 68A leading plus or minus sign is allowed. 69.It 70If the leading character is a single or double quote, the value is the | 35.Dt PRINTF 1 36.Os 37.Sh NAME 38.Nm printf 39.Nd formatted output 40.Sh SYNOPSIS 41.Nm 42.Ar format Op Ar arguments ... --- 20 unchanged lines hidden (view full) --- 63.Cm s ; 64otherwise it is evaluated as a C constant, with the following extensions: 65.Pp 66.Bl -bullet -offset indent -compact 67.It 68A leading plus or minus sign is allowed. 69.It 70If the leading character is a single or double quote, the value is the |
71.Tn ASCII 72code of the next character. | 71character code of the next character. |
73.El 74.Pp 75The format string is reused as often as necessary to satisfy the 76.Ar arguments . 77Any extra format specifications are evaluated with zero or the null 78string. 79.Pp 80Character escape sequences are in backslash notation as defined in the --- 289 unchanged lines hidden --- | 72.El 73.Pp 74The format string is reused as often as necessary to satisfy the 75.Ar arguments . 76Any extra format specifications are evaluated with zero or the null 77string. 78.Pp 79Character escape sequences are in backslash notation as defined in the --- 289 unchanged lines hidden --- |