parent
c6f3e0e421
commit
6dcf58a25d
@ -0,0 +1,3 @@ |
|||||||
|
#pragma once |
||||||
|
|
||||||
|
void shell_echo(struct console *con, const char **argv, size_t argc); |
@ -0,0 +1,15 @@ |
|||||||
|
#include <stdio.h> |
||||||
|
|
||||||
|
#include <console.h> |
||||||
|
|
||||||
|
#include <shell/echo.h> |
||||||
|
|
||||||
|
void shell_echo(struct console *con, const char **argv, size_t argc) |
||||||
|
{ |
||||||
|
if (argc < 1) |
||||||
|
return; |
||||||
|
|
||||||
|
fprintf(con->fp, "%s\n", argv[0]); |
||||||
|
} |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue