Ovis_Entity_Name_Set()
摘要
设置 Ovis 实体名称。
语法
Ovis_Entity_Name_Set (ent_ptr, name)
| 参数 | 类型 | 说明 |
|---|---|---|
ent_ptr |
OvisT_Entity * |
实体 |
name |
const char * |
实体名称 |
返回类型
OvisT_Compcode
若实体有效则为 OvisC_Compcode_Success,否则为 OvisC_Compcode_Failure。
头文件
ovis_entity.h
详情
该函数设置 Ovis 实体名称。
示例
OvisT_Entity * entity;
/* … entity created at some point */
Ovis_Entity_Name_Set (entity, "a new name");
错误
- 实体为 NIL。
参考
- 无