1oath_strerror_name(3) liboath oath_strerror_name(3)
2
3
4
6 oath_strerror_name - API function
7
9 #include <oath.h>
10
11 const char * oath_strerror_name(int err);
12
14 int err liboath error code
15
17 Convert return code to human readable string representing the error
18 code symbol itself. For example, oath_strerror_name(OATH_OK) returns
19 the string "OATH_OK".
20
21 This string can be used to output a diagnostic message to the user.
22
23 This function is one of few in the library that can be used without a
24 successful call to oath_init().
25
27 Returns a pointer to a statically allocated string containing a string
28 version of the error code err, or NULL if the error code is not known.
29
31 1.8.0
32
34 Report bugs to <oath-toolkit-help@nongnu.org>. liboath home page:
35 https://www.nongnu.org/oath-toolkit/ General help using GNU software:
36 http://www.gnu.org/gethelp/
37
39 Copyright © 2009-2020 Simon Josefsson.
40 Copying and distribution of this file, with or without modification,
41 are permitted in any medium without royalty provided the copyright no‐
42 tice and this notice are preserved.
43
44
45
46liboath 2.6.9 oath_strerror_name(3)