.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "" "" "2023-05-26" "PMDK - " "PMDK Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2020, Intel Corporation .SH NAME .PP \f[B]pmem2_perror\f[R]() - prints a descriptive error message to stderr .SH SYNOPSIS .IP .nf \f[C] #include void pmem2_perror(const char *format, ...); \f[R] .fi .SH DESCRIPTION .PP The \f[B]pmem2_perror\f[R]() function produces a message on standard error stream describing the last error encountered during library call. .PP \f[B]pmem2_perror\f[R]() takes a variable number of arguments. First, the argument string \f[I]format\f[R] is printed - similarly to the \f[B]printf\f[R](3), followed by a colon and a blank. Then an error message retrieved from the \f[B]pmem2_errormsg\f[R](), and a new-line. To see how the error message is generated, please see \f[B]pmem2_errormsg\f[R](3). .SH SEE ALSO .PP \f[B]libpmem2\f[R](7), \f[B]perror\f[R](3), \f[B]pmem2_errormsg\f[R](3), \f[B]printf\f[R](3) and \f[B]\f[R]