prg_list_insert_tail_unique()

Abstract

Appends an element to the end of a list, if the element does not already exist in the list.

Syntax

prg_list_insert_tail_unique (list_ptr, elem_ptr, test_func)
Argument Type Description
list_ptr PrgT_List * List of interest.
elem_ptr VosT_Address Element to be added to the list.
test_func PrgT_List_Equal_Proc Procedure to use when comparing the prospective element to existing elements. If NIL, element addresses are compared.

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the element is added successfully; PrgC_Compcode_Failure otherwise.

prg_list_funcs.h

Details

The prototype for test_func is given in PrgT_List_Equal_Proc.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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