CS318 - Pintos
Pintos source browser for JHU CS318 course
echo.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <syscall.h>
3 
4 int
5 main (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 }
main
int main(int argc, char **argv)
Definition: echo.c:5
printf
int printf(const char *format,...)
Writes formatted output to the console.
Definition: stdio.c:79
EXIT_SUCCESS
#define EXIT_SUCCESS
Typical return values from main() and arguments to exit().
Definition: syscall.h:19