aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c71
1 files changed, 35 insertions, 36 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 353cfc608..a666ff7ac 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -1,41 +1,40 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* printf - format and print data 2/*
3 3 * printf - format and print data
4 Copyright 1999 Dave Cinege 4 *
5 Portions copyright (C) 1990-1996 Free Software Foundation, Inc. 5 * Copyright 1999 Dave Cinege
6 6 * Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
7 Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 *
8*/ 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 9 */
10/* Usage: printf format [argument...] 10/* Usage: printf format [argument...]
11 11 *
12 A front end to the printf function that lets it be used from the shell. 12 * A front end to the printf function that lets it be used from the shell.
13 13 *
14 Backslash escapes: 14 * Backslash escapes:
15 15 *
16 \" = double quote 16 * \" = double quote
17 \\ = backslash 17 * \\ = backslash
18 \a = alert (bell) 18 * \a = alert (bell)
19 \b = backspace 19 * \b = backspace
20 \c = produce no further output 20 * \c = produce no further output
21 \f = form feed 21 * \f = form feed
22 \n = new line 22 * \n = new line
23 \r = carriage return 23 * \r = carriage return
24 \t = horizontal tab 24 * \t = horizontal tab
25 \v = vertical tab 25 * \v = vertical tab
26 \0ooo = octal number (ooo is 0 to 3 digits) 26 * \0ooo = octal number (ooo is 0 to 3 digits)
27 \xhhh = hexadecimal number (hhh is 1 to 3 digits) 27 * \xhhh = hexadecimal number (hhh is 1 to 3 digits)
28 28 *
29 Additional directive: 29 * Additional directive:
30 30 *
31 %b = print an argument string, interpreting backslash escapes 31 * %b = print an argument string, interpreting backslash escapes
32 32 *
33 The 'format' argument is re-used as many times as necessary 33 * The 'format' argument is re-used as many times as necessary
34 to convert all of the given arguments. 34 * to convert all of the given arguments.
35 35 *
36 David MacKenzie <djm@gnu.ai.mit.edu> 36 * David MacKenzie <djm@gnu.ai.mit.edu>
37*/ 37 */
38
39/* 19990508 Busy Boxed! Dave Cinege */ 38/* 19990508 Busy Boxed! Dave Cinege */
40 39
41//config:config PRINTF 40//config:config PRINTF