busybox/libbb/c_escape.c
Denys Vlasenko 4f3a56dc12 ls: fix -Q to match GNU
function                                             old     new   delta
print_name                                           137     229     +92
display_files                                        375     402     +27
c_escape_conv_str00                                    -      24     +24
display                                             1476    1485      +9
conv_str                                              33       -     -33
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 3/0 up/down: 152/-33)           Total: 119 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-08-01 01:02:43 +02:00

20 lines
444 B
C

/* vi: set sw=4 ts=4: */
/*
* Copyright (C) 2025 by Denys Vlasenko <vda.linux@googlemail.com>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
//kbuild:lib-y += c_escape.o
#include "libbb.h"
const char c_escape_conv_str00[] ALIGN1 =
"\\""0""\0" // [0]:00
"\\""a""\0" // [1]:07
"\\""b""\0" // [2]:08
"\\""t""\0" // [3]:09
"\\""n""\0" // [4]:0a
"\\""v""\0" // [5]:0b
"\\""f""\0" // [6]:0c
"\\""r" // [7]:0d
;