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_add_event - Appends an event to the data file

Description

xdf_add_event()  appends  to  the  file  referenced by the handle xdf opened for writing an event of type
       evttype at time onset lasting for a duration dur expressed in seconds. If the  event  has  no  notion  of
       duration,  dur  should  be  set  to  0.  evttype  should  be  a  value  returned  by a successful call to
       xdf_add_evttype(3).

Errors

EINVALxdf is NULL or evttype has not been previously created by xdf_add_evttype(3)

       ENOMEM The system is unable to allocate resources.

       EPERM  The file referenced by xdf has not been opened for writing or its file  format  does  not  support
              events.

Name

       xdf_add_event - Appends an event to the data file

Return Value

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

See Also

xdf_add_evttype(3)

EPFL                                                  2010                                      XDF_ADD_EVENT(3)

Synopsis

#include<xdfio.h>intxdf_add_event(structxdf*xdf,intevttype,doubleonset,doubledur);

See Also