RIOT/tests/stdin/main.c
2019-06-22 22:10:20 +02:00

25 lines
504 B
C

/*
* Copyright (C) 2019 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @file
* @brief Shows that stdin module is required when one wants to use getchar
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*
*/
#include <stdio.h>
int main(void)
{
int value = getchar();
printf("You entered '%c'\n", (char)value);
return 0;
}