Mercurial > archived > louis > perso > liblxcstats
view tests/close.c @ 12:dbf24a82f625 default tip
Fix doxygen comments and add a Doxyfile
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Fri, 07 Jan 2011 21:49:31 +0100 |
parents | 6ce4443e7545 |
children |
line wrap: on
line source
#include <err.h> #include <stdlib.h> #include "lxcstats.h" int main(void) { lxcst_handle *hdl; if (lxcst_close(NULL) != 0) errx(EXIT_FAILURE, "lxcst_close fail on NULL handle"); hdl = lxcst_open(); if (!hdl) err(EXIT_FAILURE, "lxcst_open failed"); if (lxcst_close(hdl) != 0) errx(EXIT_FAILURE, "lxcst_close fail on valid handle"); return (EXIT_SUCCESS); }