# NMS_V5Exit

Performs an internal V5 library clean-up procedure prior to exiting the library.

#### Prototype

NMS_V5_RESULT_T NMS_V5Exit

#### Return values

Return value | Description
NMSV5_SUCCESS |
NMSV5_INTERNAL_FAILURE | Internal failure. Refer to the trace log for more information.
NMSV5_NOT_INITIALIZED | NMS V5 library was not initialized with NMS_V5Initialize.

#### Details

NMS_V5Exit stops and destroys all HDLC channels and E1 links provisioned by the application, flushes trace buffers, stops NMS V5 library tasks, and frees internally allocated memory.

#### See also

NMS_V5DestroyInterface, NMS_V5StopInterface

#### Example

void Exit( void )
{
NMS_V5_RESULT_T NmsResult;
printf("NMS_V5Exit:\n");
NmsResult = NMS_V5Exit();
printf ("NMS_V5Exit: Result=%s\n",PRINT_RESULT(NmsResult));
}