Inject characters into a device's input buffer
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCINJECTC __DIOT(_DCMD_CHR, 22, char *) /*CANONICAL Input Buffer*/ #define DCMD_CHR_TCINJECTR __DIOT(_DCMD_CHR, 23, char *) /*RAW Input Buffer*/
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_CHR_TCINJECTC or DCMD_CHR_TCINJECTR |
| dev_data_ptr | A pointer to a char |
| n_bytes | The number of characters to inject |
| dev_info_ptr | NULL |
These commands inject characters into a device's canonical or raw input buffer.
A pointer to a character buffer.
None.
devctl(), tcinject() in the QNX Neutrino C Library Reference