xv6-65oo2/user/echo.c

14 lines
217 B
C
Raw Normal View History

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