summaryrefslogtreecommitdiff
path: root/Userland/echo.cpp
blob: 3dbacd26a13baa66f5519c2749f16d7750d066af (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}