XDF_GET_EVENT(3)
π XDF_GET_EVENT(3) π
okay bestie, welcome to the xdffileio library manual β yes this is a C thing, yes it's real, and yes you're gonna get it. this is xdf_get_event, and it's about to spill the tea on your data file's events. π
β¨ NAME β¨
xdf_get_event β get the deets of an event in a data file. like, the actual details. not vibes. details. π
π¦ SYNOPSIS π¦
#include <xdfio.h>
int xdf_get_event(struct xdf* xdf, unsigned int index,
int* evttype, double* onset, double* dur);
look at that signature. she's giving structured. π
πΈ DESCRIPTION πΈ
so here's the situation, bestie: xdf_get_event() hands you back the info for the index-th event of the file that the handle xdf is pointing at. that's it. that's the whole job. π«Ά
and it doesn't just dump everything in one blob β no no, she's organized. she writes the results into three separate pointers, so:
- the event type goes to
evttype - the start of the event, in seconds goes to
onset - the duration of the event, also in seconds goes to
dur
three pointers, three answers, zero confusion. we love a clean interface. β¨
π₯ RETURN VALUE π₯
- she returns
0when everything slays β success, periodt. π - if it doesn't go well, she returns
-1and setserrnoappropriately. so like, check yourerrno, bestie. she's trying to tell you something. π
π ERRORS π
EINVALβ one ofxdf,evttype,onsetordurisNULL. yeah. you passed a whole void. not the vibe. πERANGEβindexis bigger than the number of events in the file. you're reaching for an event that literally does not exist. it's not there. stop asking. π
π§ SEE ALSO π§
xdf_add_evttype(3)β go read that one too, iykyk π
and that's the whole page, bestie! this gorgeous piece of documentation was brought to you by EPFL in 2010, and the page itself is XDF_GET_EVENT(3). stan an institution that ships manpages. π
π¦ where this page comes from
- debian bookworm: libxdffileio-dev 0.3-4 Β· LGPL-3.0-or-later
- debian trixie: libxdffileio-dev 0.3-4+b2 Β· LGPL-3.0-or-later
- fedora 43: xdffileio-devel 0.3-23.fc43 Β· LGPL-3.0-or-later
- fedora 43: xdffileio-devel 0.3-23.fc43 Β· LGPL-3.0-or-later
- fedora 44: xdffileio-devel 0.3-24.fc44 Β· LGPL-3.0-or-later
- fedora 44: xdffileio-devel 0.3-24.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libxdffileio-dev 0.3-4 Β· LGPL-3.0-or-later
- ubuntu noble: libxdffileio-dev 0.3-4ubuntu3 Β· LGPL-3.0-or-later
- ubuntu questing: libxdffileio-dev 0.3-4ubuntu3
- ubuntu resolute: libxdffileio-dev 0.3-4ubuntu4 Β· LGPL-3.0-or-later
- ubuntu stonking: libxdffileio-dev 0.3-4ubuntu4 Β· LGPL-3.0-or-later
- Copyright 2010 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms