summaryrefslogtreecommitdiff
path: root/miscutils/bc.c
diff options
context:
space:
mode:
authorDenys Vlasenko2018-12-11 21:21:14 +0100
committerDenys Vlasenko2018-12-11 21:21:14 +0100
commit2c6f563216da4fd38626b59cbd01774bbc0e2a71 (patch)
treecc3ffa0f9c461b69767032833742ca2eec30a846 /miscutils/bc.c
parentc008a73762ebe4ce0dc8bc7741a887d394b6fb6f (diff)
downloadbusybox-2c6f563216da4fd38626b59cbd01774bbc0e2a71.zip
busybox-2c6f563216da4fd38626b59cbd01774bbc0e2a71.tar.gz
bc: tweak comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/bc.c')
-rw-r--r--miscutils/bc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 9f05cad..143bb64 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -5586,8 +5586,9 @@ static char *bc_program_name(char *code, size_t *bgn)
static void bc_program_printString(const char *str)
{
#if ENABLE_DC
- // Huh? Example when this happens?
if (!str[0]) {
+ // Example: echo '[]ap' | dc
+ // should print two bytes: 0x00, 0x0A
bb_putchar('\0');
return;
}