tbm-mcu/source/shell/echo.c

17 lines
218 B
C

#include <stdio.h>
#include <console.h>
#include <shell/echo.h>
int shell_echo(struct console *con, size_t argc, const char **argv)
{
if (argc < 1)
return -1;
fprintf(con->fp, "%s\n", argv[0]);
return 0;
}