ERR_error_string_n(unsigned long e, char *buf, size_t len)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31/05/2016 19:41, Udit Raikwar wrote:
> Hello,
> I am working on one project and i need to print the error description 
> associated with the error number. I am using function
> ERR_error_string_n(unsigned long e, char *buf, size_t len);
>
> I know error code(e) is an 8 digit hexadecimal number,
> can i get the error description using 'strerror(int errno)' function ?
> Thanks
No.

strerror() only knows about the C runtime library errors
that are reported in errno.  It doesn't know the text for
(or other meaning of) errors in other libraries such as
OpenSSL or Zlib.

That is why most such libraries (including OpenSSL) have
their own error string functions that know the library
specific error codes.


Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 S?borg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux