GetStatusString
获取状态码描述:
const char* HMPPS_GetStatusString(HmppResult result);
参数
参数名 |
描述 |
取值范围 |
输入/输出 |
---|---|---|---|
result |
状态码 |
HMPPResult中出现的枚举类型。 |
输入 |
返回值
- 成功:返回状态码的对应描述。
- 失败:返回"Not Found This Error Description"。
错误码
无
注意
不要释放返回指针指向的内存。
示例
void GetStatusStringExample() { printf("%s\n", HMPPS_GetStatusString(HMPP_STS_NO_ERR)); printf("%s\n", HMPPS_GetStatusString(HMPP_STS_NULL_PTR_ERR)); printf("%s\n", HMPPS_GetStatusString(HMPP_STS_SIZE_ERR)); printf("%s\n", HMPPS_GetStatusString(HMPP_STS_NOT_SUPPORT)); }
运行结果:
No Error Null Pointer Error Vector size <= 0 Error This system does not support this function
父主题: 基础与通用运算