---
name: "xdf_get_evttype"
section: "3"
platform: "linux"
package: "libxdffileio-dev"
version: "0.3-4+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/xdf_get_evttype"
---

# xdf\_get\_evttype(3)

Get information about an event type

## NAME

xdf\_get\_evttype - Get information about an event type

## SYNOPSIS

**#include \<xdfio.h\>**

**int xdf\_get\_evttype(struct xdf\*** *xdf***, unsigned int** *evttype***,**\
                     **int\*** *code***, const char\*\*** *desc***);**\

## DESCRIPTION

**xdf\_get\_evttype**() returns the information of the event type *evttype* of the XDF file referenced by *xdf*. The code and the description of the event type are returned respectively in the pointers *code* and *desc*.

## RETURN VALUE

The function returns 0 in case of success. Otherwise -1 is returned and *errno* is set appropriately.

## ERRORS

- **EINVAL**

  *xdf*, *code* or *desc* is NULL.

- **ERANGE**

  *evttype* is an invalid event type of *xdf*

## SEE ALSO

[**xdf\_get\_event**(3)](/xdf_get_event/3.md)
