#include <oskit/com/libcenv.h>void oskit_libcenv_exit(oskit_libcenv_t *c, oskit_u32_t status);
oskit_error_t oskit_libcenv_setexit(oskit_libcenv_t *c, void (*exitfunc)(int));
Call (or set) the exit function for the application. This function is default to the OSKit kernel exit routine, which causes a reboot.
- c
- The oskit_libcenv object to operate on.
- status
- The exit value.
- exitfunc
- The new exit function.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.