zmq_strerror()
语言: C
返回值:char *
使用方法:
zmq_strerror( zmq_errno())
或
zmq_strerror(errno);
注意事项:
在调用函数,判断函数返回值后才可使用,在函数返回值正常的情况下使用会得出上次系统错误值,这个值是随机的。
The zmq_strerror() function shall return a pointer to an error message string corresponding to the error number specified by the errnum argument. As ØMQ defines additional error numbers over and above those defined by the operating system, applications should use zmq_strerror() in preference to the standard strerror() function.
大意为:
由于ØMQ定义的错误比操作系统定义的错误多,因此应用程序应该优先使用zmq_strerror()而不是标准strerror()函数。