prg_list_insert_tail_unique()

摘要

如果元素尚不存在于列表中,则将其追加到列表末尾。

语法

prg_list_insert_tail_unique (list_ptr, elem_ptr, test_func)
参数 类型 说明
list_ptr PrgT_List * 目标列表。
elem_ptr VosT_Address 要添加到列表中的元素。
test_func PrgT_List_Equal_Proc 比较待添加元素与现有元素时使用的过程。若为 NIL,则比较元素地址。

返回类型

PrgT_Compcode

元素添加成功时返回 PrgC_Compcode_Success,否则返回 PrgC_Compcode_Failure。

头文件

prg_list_funcs.h

详情

test_func 的原型见 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