mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-11 04:38:22 +00:00
439 B
439 B
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
Functions
spng_strerror()
const char *spng_strerror(int err)
Return the error message for the given error code.