---
title: GetStatusString
description: "获取状态码描述："
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/240RC2/accel/kunpengaccel_hmpp_06_0033.html
sourcePath: /source/zh/kunpengboostkithistory/240RC2/accel/kunpengaccel_hmpp_06_0033.html
indexId: e459245f9eafaf47f193e3d1dc6c0e085431c142eba1acdb82a872c426c50b9077
---
# GetStatusString

获取状态码描述：

const char* HMPP_GetStatusString(HmppResult result);

#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| result | 状态码。 | HMPPResult中出现的枚举类型。 | 输入 |


#### 返回值

- 成功：返回状态码的对应描述。
- 失败：返回“Not Found This Error Description”。


#### 错误码

无


#### 注意

不要释放返回指针指向的内存。


#### 示例

```
void  HMPP_GetStatusString_Example()
{
printf("%s\n", HMPP_GetStatusString(HMPP_STS_NO_ERR));
printf("%s\n", HMPP_GetStatusString(HMPP_STS_NULL_PTR_ERR));
printf("%s\n", HMPP_GetStatusString(HMPP_STS_SIZE_ERR));
printf("%s\n", HMPP_GetStatusString(HMPP_STS_NOT_SUPPORT));
}
```

运行结果：

```
No Error
Null Pointer Error
Vector size <= 0 Error
This system does not support this function
```
