---
name: "SPI_result_code_string"
section: "3"
platform: "linux"
package: "postgresql"
version: "18.6-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SPI_result_code_string"
---

# SPI\_result\_code\_string(3)

return error code as string

## NAME

SPI\_result\_code\_string - return error code as string

## SYNOPSIS

```
const char * SPI_result_code_string(int code);
```

## DESCRIPTION

**SPI\_result\_code\_string** returns a string representation of the result code returned by various SPI functions or stored in *SPI\_result*.

## ARGUMENTS

int *code*

result code

## RETURN VALUE

A string representation of the result code.
