---
name: "XtGetApplicationNameAndClass"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtGetApplicationNameAndClass"
---

# XtGetApplicationNameAndClass(3)

retrieve application name and class

## NAME

XtGetApplicationNameAndClass - retrieve application name and class

## SYNTAX

\#include \<X11/Intrinsic.h\>

void XtGetApplicationNameAndClass(Display\* *display*, String\* *name\_return*, String\* *class\_return*);

## ARGUMENTS

- *display*

  Specifies an open display connection that has been initialized with **XtDisplayInitialize**.

- *name\_return*

  Returns the application name.

- *class\_return*

  Returns the application class.

## DESCRIPTION

**XtGetApplicationNameAndClass** returns the application name and class passed to **XtDisplayInitialize** for the specified display. If the display was never initialized or has been closed, the result is undefined. The returned strings are owned by the Intrinsics and must not be modified or freed by the caller.

## SEE ALSO

[**XtDisplayInitialize**(3)](/XtDisplayInitialize/3.md)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
