我要评分
获取效率
正确性
完整性
易理解

Return Values

Return values are error codes, which are defined in the enumeration type KvsipResult and show the execution status of a library function.

There is no buffer to store the final error status. The caller needs to determine whether to check the error code when the function returns a value.

Table 1 describes the error codes.

Table 1 Error codes

Value

Description

0

KVSIP_STS_NO_ERR: No error occurs.

≥ 1

A common error occurs, for example, a null pointer or a size error occurs.

A non-zero error code does not indicate that the function execution is not complete. Determine the situation according to the function processing logic.