xv6-riscv-kernel/user/echo.c

14 lines
214 B
C
Raw Normal View History

#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
2006-07-29 00:33:07 +02:00
int
main(int argc, char *argv[])
{
int i;
for(i = 1; i < argc; i++)
2019-08-27 19:13:03 +02:00
printf("%s%s", argv[i], i+1 < argc ? " " : "\n");
2006-07-29 00:33:07 +02:00
exit();
}