Specifications
Return
The return value is 1 if the device is a character device, and zero otherwise. If an error occurs, errno is set
to indicate the cause.
Related Information
• fcntl() on page 14-57
• fstat() on page 14-55
• ioctl() on page 14-73
• lseek() on page 14-64
• open() on page 14-66
• read() on page 14-68
• stat() on page 14-60
• write() on page 14-69
• newlib Library Documentation
HAL Standard Types
In the interest of portability, the HAL uses a set of standard type definitions in place of the ANSI C built-
in types. The Table below describes these types, which are defined in the header file alt_types.h.
Table 14-2: HAL Standard Types
Type Description
alt_8 Signed 8-bit integer.
alt_u8 Unsigned 8-bit integer.
alt_16 Signed 16-bit integer.
alt_u16 Unsigned 16-bit integer.
alt_32 Signed 32-bit integer.
alt_u32 Unsigned 32-bit integer.
alt_64 Signed 64-bit integer.
alt_u64 Unsigned 64-bit integer.
alt_getchar()
Prototype
alt_getchar()
Commonly Called By
C/C++ programs
Device drivers
NII5V2
2015.05.14
HAL Standard Types
14-75
HAL API Reference
Altera Corporation
Send Feedback