tbm-mcu/source/shell/echo.c

18 lines
218 B
C
Raw Normal View History

2017-07-27 10:44:52 +02:00
#include <stdio.h>
#include <console.h>
#include <shell/echo.h>
2017-07-27 11:54:31 +02:00
int shell_echo(struct console *con, size_t argc, const char **argv)
2017-07-27 10:44:52 +02:00
{
if (argc < 1)
2017-07-27 11:54:31 +02:00
return -1;
2017-07-27 10:44:52 +02:00
fprintf(con->fp, "%s\n", argv[0]);
2017-07-27 11:54:31 +02:00
return 0;
2017-07-27 10:44:52 +02:00
}