Nios® II Software Developer Handbook

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

15.2.2. alt_putstr()

Prototype

alt_putstr(const char* str)

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_putstr() function ses the ALT_DRIVER_WRITE() macro to call directly to the driver, if available; otherwise, it uses the newlib provided fputs() routine.

Return

The return value is zero on success and nonzero otherwise.