2.1.2 Status Codes — Zix 0.6.2 documentation

# 2.1.2 Status Codes

enum ZixStatus

  A status code returned by functions.

  enumerator ZIX_STATUS_SUCCESS

    Success.

  enumerator ZIX_STATUS_ERROR

    Unknown error.

  enumerator ZIX_STATUS_NO_MEM

    Out of memory.

  enumerator ZIX_STATUS_NOT_FOUND

    Not found.

  enumerator ZIX_STATUS_EXISTS

    Exists.

  enumerator ZIX_STATUS_BAD_ARG

    Bad argument.

  enumerator ZIX_STATUS_BAD_PERMS

    Bad permissions.

  enumerator ZIX_STATUS_REACHED_END

    Reached end.

  enumerator ZIX_STATUS_TIMEOUT

    Timeout.

  enumerator ZIX_STATUS_OVERFLOW

    Overflow.

  enumerator ZIX_STATUS_NOT_SUPPORTED

    Not supported.

  enumerator ZIX_STATUS_UNAVAILABLE

    Resource unavailable.

  enumerator ZIX_STATUS_NO_SPACE

    Out of storage space.

  enumerator ZIX_STATUS_MAX_LINKS

    Too many links.

const char *zix_strerror(ZixStatus status)

  Return a string describing a status code in plain English.

  The returned string is always one sentence, with an uppercase first character, and no trailing period.