Nios® V Processor Software Developer Handbook

ID 743810
Date 10/02/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

13.1.2.3. alt_putchar()

Prototype

alt_putchar(int c)

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>

Description

The alt_putchar() function uses the ALT_DRIVER_WRITE() macro to call directly to the driver, if available; otherwise, it uses the newlib provided putchar() routine.

Return

The return value is zero on success and nonzero otherwise.