]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - cmd/echo.c
1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
10 static int do_echo(struct cmd_tbl
*cmdtp
, int flag
, int argc
,
16 for (i
= 1; i
< argc
; i
++) {
18 char *nls
; /* new-line suppression */
23 nls
= strstr(p
, "\\c");
29 * be paranoid and guess that someone might
30 * say \c more than once
37 nls
= strstr(prenls
, "\\c");
52 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
53 "echo args to console",
55 " - echo args to console; \\c suppresses newline"