op_sar_bitrange_destroy()

Abstract

Deallocates memory associated with a bit-range.

Syntax

op_sar_bitrange_destroy (bit_range)
Argument Type Description
bit_range Sar_Bitrange* bit-range to be destroyed

Return Type

void

No return value.

Example

/* loop through a bitrange list and destroy all bitranges. */

while (op_prg_list_size (bitrange_list_ptr) != 0)
	{
	bitrange_ptr = (Sar_Bitrange *) op_prg_list_remove(bitrange_list_ptr,
		OPC_LISTPOS_HEAD);
	op_sar_bitrange_destroy (bitrange_ptr);
	}

Details

After a bit-range is no longer needed, the memory associated with it should be deallocated so that memory does not run out, thereby causing a program abort.

Purpose

Provides a mechanism to destroy bit-ranges.

Errors

  • Recoverable Error: Sar_Bitrange is invalid.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com