logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

xdf_get_event - Get details of an event of a data file

Description

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.

Errors

EINVALxdf, evttype, onset or dur is NULL.

       ERANGEindex is bigger than the number event in the file.

       SEEALSOxdf_add_evttype(3)

EPFL                                                  2010                                      XDF_GET_EVENT(3)

Name

       xdf_get_event - Get details of an event of a data file

Return Value

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

Synopsis

#include<xdfio.h>intxdf_get_event(structxdf*xdf,unsignedintindex,int*evttype,double*onset,double*dur);

See Also