mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
Userland: Add a simple /bin/echo program.
This commit is contained in:
parent
737315c228
commit
eadcf720c0
1 changed files with 12 additions and 0 deletions
12
Userland/echo.cpp
Normal file
12
Userland/echo.cpp
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, char** argv)
|
||||||
|
{
|
||||||
|
for (int i = 1; i < argc; ++i) {
|
||||||
|
fputs(argv[i], stdout);
|
||||||
|
if (i != argc - 1)
|
||||||
|
fputc(' ', stdout);
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue