tbm-mcu/source/shell/echo.c

15 lines
206 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;
fputs(argv[0], con->fp);
return 0;
}