aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/heart_SUITE_data/simple_echo.c
blob: 0093dbce9badd787a7fbfba91654d8ce2036c296 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef VXWORKS
int simple_echo(void){
#else
int main(void){
#endif
  int x;
  while((x = getchar()) != EOF){
    putchar(x);
    fflush(stdout);
  }
  return 0;
}