]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/cmd_echo.c
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
12 command_ret_t
do_echo(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
14 uint_fast8_t putnl
= 1;
16 (void) cmdtp
; (void) flag
;
18 for (uint_fast8_t i
= 1; i
< argc
; i
++) {
20 uint_fast8_t backslash
= 0;
26 while ((c
= *p
++) != '\0') {
48 return CMD_RET_SUCCESS
;
53 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
54 "echo args to console",
56 " - echo args to console; \\c suppresses newline"