mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Userland: Add a simple /bin/echo program.
This commit is contained in:
parent
737315c228
commit
eadcf720c0
Notes:
sideshowbarker
2024-07-19 14:35:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/eadcf720c08
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…
Reference in a new issue