1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 01:23:49 +01:00
RIOT/tests/sys/stdin/main.c
Marian Buschsieweke f8029e8891
tests/sys: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-22 08:48:27 +01:00

25 lines
413 B
C

/*
* SPDX-FileCopyrightText: 2019 Inria
* SPDX-License-Identifier: LGPL-2.1-only
*/
/**
* @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)
{
while (1) {
int value = getchar();
printf("You entered '%c'\n", (char)value);
}
return 0;
}