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