Specifications

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.
Related Information
alt_putchar() on page 14-77
alt_getchar() on page 14-75
alt_printf() on page 14-78
newlib Library Documentation
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.
Related Information
alt_putstr() on page 14-76
alt_getchar() on page 14-75
alt_printf() on page 14-78
NII5V2
2015.05.14
alt_putchar()
14-77
HAL API Reference
Altera Corporation
Send Feedback