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

# XtAppAddConverter(3)

register resource converter

## NAME

XtAppAddConverter, XtAddConverter - register resource converter

## SYNTAX

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

void XtAppAddConverter(XtAppContext *app\_context*, const char \**from\_type*, const char \**to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*);

void XtAddConverter(const char \**from\_type*, const char \**to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*);

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *converter*

  Specifies the type converter procedure.

- *convert\_args*

  Specifies how to compute the additional arguments to the converter or NULL.

- *from\_type*

  Specifies the source type.

- *num\_args*

  Specifies the number of additional arguments to the converter or zero.

- *to\_type*

  Specifies the destination type.

## DESCRIPTION

**XtAppAddConverter** is equivalent in function to **XtAppSetTypeConverter** with *cache\_type* equal to **XtCacheAll** for old-format type converters. It has been superseded by **XtAppSetTypeConverter**.

**XtAddConverter** is equivalent in function to **XtSetTypeConverter** with *cache\_type* equal to **XtCacheAll** for old-format type converters. It has been superseded by **XtSetTypeConverter**.

## SEE ALSO

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