]>
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(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
15 for (i
= 1; i
< argc
; i
++) {
17 char *nls
; /* new-line suppression */
22 nls
= strstr(p
, "\\c");
28 * be paranoid and guess that someone might
29 * say \c more than once
36 nls
= strstr(prenls
, "\\c");
51 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
52 "echo args to console",
54 " - echo args to console; \\c suppresses newline"