Ovis_Entity_Hname_Get()

摘要

检索 Ovis 实体的完整层次名称。

语法

Ovis_Entity_Hname_Get (ent_ptr, buf_len_ptr, hname_buffer)
参数 类型 说明
ent_ptr OvisT_Entity * 实体
buf_len_ptr size_t * 缓冲区最大长度(字节)
hname_buffer char * 用于存放所生成层次名称的字符缓冲区

返回类型

OvisT_Compcode

若成功返回层次名称则为 OvisC_Compcode_Success,否则为 OvisC_Compcode_Failure。如果检索失败是由于缓冲区大小过小,buf_len_ptr 将被设置为成功检索所需的最小大小。

头文件

ovis_entity.h

详情

该函数检索 Ovis 实体的完整层次名称。

示例

OvisT_Entity    * entity;
size_t          size;
char            buffer [100];

/* … entity created at some point */

size = 100;
Ovis_Entity_Hname_Get (entity, &size, buffer);

错误

  • 实体为 NIL。
  • 大小参数为 NIL。
  • 字符串缓冲区为 NIL。

参考

  • 无

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