xdf_get_event(3)

xdf_get_event3

Get details of an event of a data file

Usage

#include <xdfio.h>

int xdf_get_event(struct xdf* xdf, unsigned int index,
int* evttype, double* onset, double* dur);

Overview

xdf_get_event() returns the information of the index-th event of the file referenced by the handle xdf. The event type, start (in seconds) and duration (in seconds) of the event are returned respectively to the pointers evttype, onset and dur.

Return value

xdf_get_event() returns 0 in case of success. Otherwise -1 is returned and errno is set appropriately.

Errors

EINVAL

xdf, evttype, onset or dur is NULL.

ERANGE

index is bigger than the number event in the file.

Releases

Unchanged in 7 releases since Debian 7 (Wheezy).

  1. 7–13

From libxdffileio-dev 0.3-4+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.