# svrng_set_status

Sets the status variable to a specified value and returns the previous status value

## Syntax

int32_t svrng_set_status( int32_t new_status )

## Input Parameters

new_status | The new status.

## Description

The svrng_set_status function sets the status variable to a specific constant value and returns the previous status value. See the Error Handling page for a table of values defined in svrng.h.

## Return Values

Returns the previous status value.

Parent topic: Error Handling