---
title: GetStatusString
description: "获取状态码描述："
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_hmpp_06_0047.html
sourcePath: /source/zh/kunpengboostkithistory/2300/accel/kunpengaccel_hmpp_06_0047.html
indexId: b058f504b969efa9ac3f5e51f24d0769462b945f44105397a8fb1f0d0a143d3575
---
# 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
```
