1b2732e9dSimarom"""zmq error functions"""
2b2732e9dSimarom
3b2732e9dSimarom# Copyright (C) PyZMQ Developers
4b2732e9dSimarom# Distributed under the terms of the Modified BSD License.
5b2732e9dSimarom
6b2732e9dSimaromfrom ._cffi import C, ffi
7b2732e9dSimarom
8b2732e9dSimaromdef strerror(errno):
9b2732e9dSimarom    return ffi.string(C.zmq_strerror(errno))
10b2732e9dSimarom
11b2732e9dSimaromzmq_errno = C.zmq_errno
12b2732e9dSimarom
13b2732e9dSimarom__all__ = ['strerror', 'zmq_errno']
14