mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 01:23:49 +01:00
25 lines
413 B
C
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;
|
|
}
|