Example #1
0
/**
 *	@ingroup clib
 *
 *	de-initializes the C-library manager (closes all open handles)
 *
 *	@return 0 for success; -1 for error (actually: 'not supported' error) 
 */
int clib_restore() {
#if USE_CLIB
  int i;

  for (i = 1; i < clib_count; i++)
  clib_unloadlib(i);
  return 0;
#else
  return -1;
#endif
}
Example #2
0
/* Unload a C library. */
void lj_clib_unload(CLibrary *cl)
{
  clib_unloadlib(cl);
  cl->handle = NULL;
}