1XDF_GET_EVENT(3)           xdffileio library manual           XDF_GET_EVENT(3)
2
3
4

NAME

6       xdf_get_event - Get details of an event of a data file
7

SYNOPSIS

9       #include <xdfio.h>
10
11       int xdf_get_event(struct xdf* xdf, unsigned int index,
12                         int* evttype, double* onset, double* dur);
13

DESCRIPTION

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

RETURN VALUE

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

ERRORS

25       EINVAL xdf, evttype, onset or dur is NULL.
26
27       ERANGE index is bigger than the number event in the file.
28
29
30       SEE ALSO
31              xdf_add_evttype(3)
32
33
34
35
36
37EPFL                                 2010                     XDF_GET_EVENT(3)
Impressum