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

roar_vio_close.3 - close a RoarAudio virtual IO object

Description

       Closes  a  VIO  object.  Also  ensures  all data to be fushed to disk or send via sockets.  The given vio
       object itself is not freed as normally located in the applications stack.  if you want it to be freed you
       need to call free(3) yourself.

Examples

        struct roar_vio_calls obj;

        roar_vio_open_fh(&obj, ROAR_STDOUT);

        roar_vio_puts(&obj, "Hello World!\n");

        roar_vio_close(&obj);

Name

       roar_vio_close.3 - close a RoarAudio virtual IO object

Parameters

vio    The VIO object to be closed.

Return Value

       On success these calls return 0.  On error, -1 is returned.

See Also

roarvio(7), libroar(7), RoarAudio(7).

RoarAudio                                           May 2011                                   roar_vio_close(3)

Synopsis

       #include <roaraudio.h>

       int roar_vio_close (struct roar_vio_calls * vio);

See Also