---
name: "XmDataFieldGetStringWcs"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmDataFieldGetStringWcs"
---

# XmDataFieldGetStringWcs(3)

A DataField function that retrieves a copy of the wide character string value of a DataField widget

## NAME

**XmDataFieldGetStringWcs** — A DataField function that retrieves a copy of the wide character string value of a DataField widget

## SYNOPSIS

```
#include <Xm/DataF.h>
wchar_t * XmDataFieldGetStringWcs(
Widget widget);
```

## DESCRIPTION

**XmDataFieldGetStringWcs** retrieves a copy of the wide character string value of the DataField widget. The application is responsible for freeing the storage associated with the string by calling **XtFree**.

- *widget*

  Specifies the DataField widget ID

For a complete definition of DataField and its associated resources, see [**XmDataField**(3)](/XmDataField/3.md).

## RETURN

Returns the wide character string value of the DataField widget. The function returns an empty string if the length of the DataField widget's string is 0 (zero).

## RELATED

[**XmDataField**(3)](/XmDataField/3.md) and [**XmDataFieldGetString**(3)](/XmDataFieldGetString/3.md).
