hl2sdk/thirdparty/libspng/docs/errors.md
2025-02-19 18:36:16 -05:00

20 lines
439 B
Markdown

# Error handling
All functions return zero on success and non-zero on error.
Some errors such as integer overflow, OOM, decoding errors may lead to a
non-recoverable state, in this case all subsequent function calls will
return `SPNG_EBADSTATE`.
See also: [Decoder error handling](decode.md#error-handling)
# Functions
# spng_strerror()
```c
const char *spng_strerror(int err)
```
Return the error message for the given error code.