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