PKUOS - Pintos
Pintos source browser for PKU Operating System course
echo.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <syscall.h>
3
4int
5main (int argc, char **argv)
6{
7 int i;
8
9 for (i = 0; i < argc; i++)
10 printf ("%s ", argv[i]);
11 printf ("\n");
12
13 return EXIT_SUCCESS;
14}
int main(int argc, char **argv)
Definition: echo.c:5
int printf(const char *format,...)
Writes formatted output to the console.
Definition: stdio.c:79
#define EXIT_SUCCESS
Typical return values from main() and arguments to exit().
Definition: syscall.h:19