]>
git.ipfire.org Git - people/ms/u-boot.git/blob - common/cmd_echo.c
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
11 static int do_echo(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
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"