Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

15.2.1. alt_getchar()

Prototype

alt_getchar()

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

See description.

Available from ISR

No.

Include

<sys/alt_driver.h>
<sys/alt_stdio.h>
<priv/alt_file.h>
<unistd.h>

Description

The alt_getchar() function uses the ALT_DRIVER_READ() macro to call directly to the driver, if available; otherwise, it uses the newlib provided getchar() routine.

Return

--