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

# XmMultiListGetSelectedRowArray(3)

an MultiList function that returns an array of integers which are selected row numbers.

## NAME

**XmMultiListGetSelectedRowArray** — an MultiList function that returns an array of integers which are selected row numbers.

## SYNOPSIS

```
#include <Xm/MultiList.h>
int * XmMultiListGetSelectedRowArray(
Widget widget,
int * num_rows);
```

## DESCRIPTION

This routine creates an array of integers which are selected row numbers in the MultiList widget.

- *widget*

  Specifies the ID of the MultiList widget.

- *num\_rows*

  Specifies pointer to the integer indicates number of returned row numbers.

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

## RETURN

The **int \*** returned by this function contains a selected rows numbers array. The calling routine is responsible for freeing the returned pointer with XtFree(). The function will return NULL if no elements are selected.

## RELATED

[**XmMultiList**(3)](/XmMultiList/3.md).
