XDF_GET_EVTTYPE(3)

✨ XDF_GET_EVTTYPE(3) ✨

okay bestie so this page lives in the xdffileio library manual, and we're about to get so informed about event types πŸ’–


🌸 NAME 🌸

xdf_get_evttype β€” spill the tea on an event type, basically. it gets you info about one 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <xdfio.h>

int xdf_get_evttype(struct xdf* xdf, unsigned int evttype,
                    int* code, const char** desc);

πŸ’… DESCRIPTION πŸ’…

so xdf_get_evttype() returns the information of the event type evttype of the XDF file referenced by xdf. that's the vibe, that's the whole job πŸ’β€β™€οΈ

the code and the description of the event type come back to you through the pointers code and desc, respectively. like, it hands them over, you just gotta give it somewhere to put them 🎁


πŸ”₯ RETURN VALUE πŸ”₯

the function returns 0 in case of success. otherwise -1 is returned and errno is set appropriately. no cap, that's it ✨


😭 ERRORS 😭

  • EINVAL β€” xdf, code or desc is NULL. bestie you gotta actually pass something in πŸ™ˆ
  • ERANGE β€” evttype is an invalid event type of xdf. that event type is not giving, it does not exist πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

xdf_get_event(3) β€” go read that one too, iykyk πŸ¦‹


and that's a wrap, my love πŸ’œ this page is brought to you by EPFL, dated 2010, and it is literally the XDF_GET_EVTTYPE(3) moment of your day. stan the xdffileio manual, periodt 🌈⭐