XDF_ADD_EVENT(3)
β¨ NAME β¨
xdf_add_event β bestie, this is the one that appends an event to the data file π
So like, xdf_add_event is from the xdffileio library manual, section 3, and it's giving "I add events to your file" energy. Iconic.
πΈ SYNOPSIS πΈ
#include <xdfio.h>
int xdf_add_event(struct xdf* xdf, int evttype,
double onset, double dur);
π¦ DESCRIPTION π¦
okay so real talk. xdf_add_event() appends an event to the file that the handle xdf points at β and like, that file has to have been opened for writing, no cap. The event you're adding is of type evttype, it starts at time onset, and it lasts for a duration of dur, which is measured in seconds β±οΈ
If your event is one of those "no concept of time, I simply am" events with no notion of duration? Set dur to 0. Periodt.
And evttype?? That has to be a value that came back from a successful call to xdf_add_evttype(3). You can't just make up a number and manifest it into existence, bestie, the library will notice π
π RETURN VALUE π
0β slay, success, we ate π-1β not slay, it failed, anderrnogets set appropriately so you can go find out why
π ERRORS π
EINVALβ eitherxdfisNULL, orevttypewas never previously created byxdf_add_evttype(3). Like, you skipped a step, girl πENOMEMβ the system is unable to allocate resources. It's not you, it's the memory.EPERMβ the file referenced byxdfhas not been opened for writing, or its file format straight up does not support events. Permission said no π«
π SEE ALSO π
mwah π that's the whole page. this absolute banger of a man page was brought to you by EPFL, dated 2010, and it lives in the xdffileio library manual as XDF_ADD_EVENT(3). π«Άβ¨
π¦ 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