---
name: "XtAddInput"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtAddInput/3x"
---

# XtAddInput(3x)

register input, timeout, and workprocs

## NAME

XtAddInput, XtAddTimeout - register input, timeout, and workprocs

## SYNTAX

XtInputId XtAddInput(int *source*, XtPointer *condition*, XtInputCallbackProc *proc*, XtPointer *client\_data*);

XtIntervalId XtAddTimeout(unsigned long *interval*, XtInputCallbackProc *proc*, XtPointer *client\_data*);

XtWorkProcId XtAddWorkProc(XtWorkProc *proc*, XtPointer *client\_data*);

## ARGUMENTS

- *client\_data*

  Specifies the argument that is to be passed to the specified procedure when input is available

- *condition*

  Specifies the mask that indicates a read, write, or exception condition or some operating system dependent condition.

- *proc*

  Specifies the procedure that is to be called when input is available.

- *source*

  Specifies the source file descriptor on a UNIX-based system or other operating system dependent device specification.

## DESCRIPTION

*XtAddInput* has been replaced by *XtAppAddInput.*

*XtAddTimeout* has been replaced by *XtAppAddTimeout.*

*XtAddWorkProc* has been replaced by *XtAppAddWorkProc*.

## SEE ALSO

*X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
