1PMEM2_PERROR(3)            PMDK Programmer's Manual            PMEM2_PERROR(3)
2
3
4

NAME

6       pmem2_perror() - prints a descriptive error message to stderr
7

SYNOPSIS

9              #include <libpmem2.h>
10
11              void pmem2_perror(const char *format, ...);
12

DESCRIPTION

14       The pmem2_perror() function produces a message on standard error stream
15       describing the last error encountered during library call.
16
17       pmem2_perror() takes a variable number of arguments.  First, the  argu‐
18       ment string format is printed - similarly to the printf(3), followed by
19       a colon and  a  blank.   Then  an  error  message  retrieved  from  the
20       pmem2_errormsg(), and a new-line.  To see how the error message is gen‐
21       erated, please see pmem2_errormsg(3).
22

SEE ALSO

24       libpmem2(7),    perror(3),     pmem2_errormsg(3),     printf(3)     and
25       <https://pmem.io>
26
27
28
29PMDK - pmem2 API version 1.0      2021-07-22                   PMEM2_PERROR(3)
Impressum