mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-13 00:58:32 +00:00
20 lines
439 B
Markdown
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.
|