Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

tcischars()

Determine the number of characters waiting to be read

Synopsis:

#include <termios.h>

int tcischars( int filedes );

Arguments:

fildes
A file descriptor that's associated with the device that you want to check.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The tcischars() function checks to see how many characters are waiting to be read from the given file descriptor, filedes.

Returns:

The number of characters waiting to be read, or -1 if an error occurred.

Errors:

ENOTTY
The fd argument isn't the file descriptor for a character device.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

[Previous] [Contents] [Index] [Next]