Query: xdf_get_event
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XDF_GET_EVENT(3) xdffileio library manual XDF_GET_EVENT(3)NAMExdf_get_event - Get details of an event of a data fileSYNOPSIS#include <xdfio.h> int xdf_get_event(struct xdf* xdf, unsigned int index, int* evttype, double* onset, double* dur);DESCRIPTIONxdf_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 VALUExdf_get_event() returns 0 in case of success. Otherwise -1 is returned and errno is set appropriately.ERRORSEINVAL xdf, evttype, onset or dur is NULL. ERANGE index is bigger than the number event in the file. SEE ALSO xdf_add_evttype(3)EPFL2010 XDF_GET_EVENT(3)