Device Function

Uninitialize

dev_Uninitialize()

Uninitialize the device library.

Syntax
#include "device.h"

LResult  dev_Uninitialize
    (
         void
    );
Description

dev_Uninitialize() frees any memory allocated by dev_Initialize() and returns internal variables to their initial state.

Return Values

dev_Uninitialize() always returns a non-negative value.

See Also

dev_Initialize()
dev_IsInitialized()

Example
if (deviceCount == 0)
{
    dev_Uninitialize();
    lgo_UnitializeStack();
    exit(EXIT_SUCCESS);
}