---
name: "XtGetDisplays"
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/XtGetDisplays/3x"
---

# XtGetDisplays(3x)

retrieve a list of displays associated with an application context

## NAME

XtGetDisplays - retrieve a list of displays associated with an application context

## SYNTAX

void XtGetDisplays(XtAppContext *app\_context*, Display \*\*\**dpy\_return*, Cardinal\* *num\_dpy\_return*);

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *dpy\_return*

  Returns a list of open X display connections in the specified application context.

- *num\_dpy\_return*

  Returns the count of open X display connections in *dpy\_return*.

## DESCRIPTION

To free the list of displays, use *XtFree*.

## SEE ALSO

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