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

# XmStringPeekNextComponent(3)

A compound string function that returns the component type of the next component to be fetched

## NAME

**XmStringPeekNextComponent** — A compound string function that returns the component type of the next component to be fetched

## SYNOPSIS

```
#include <Xm/Xm.h>
XmStringComponentType XmStringPeekNextComponent(
XmStringContext context);
```

## DESCRIPTION

This function is obsolete and exists for compatibility with previous releases. It is replaced by **XmStringPeekNextTriple**. **XmStringPeekNextComponent** examines the next component that would be fetched by **XmStringGetNextComponent** and returns the component type.

- *context*

  Specifies the string context structure that was allocated by the **XmStringInitContext** function

## RETURN

Returns the type of component found. Refer to the [**XmStringComponentType**(3)](/XmStringComponentType/3.md) reference page for a list of component types.

## RELATED

[**XmStringComponentType**(3)](/XmStringComponentType/3.md), [**XmStringCreate**(3)](/XmStringCreate/3.md), [**XmStringGetNextComponent**(3)](/XmStringGetNextComponent/3.md), and [**XmStringInitContext**(3)](/XmStringInitContext/3.md).
