pmem2 API version 1.0

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

NAME

pmem2_perrorU()/pmem2_perrorW() - prints a descriptive error message to stderr

SYNOPSIS

#include <libpmem2.h>

void pmem2_perrorU(const char *format, ...);
void pmem2_perrorW(const wchar_t *format, ...);

NOTE: The PMDK API supports UNICODE. If the PMDK_UTF8_API macro is defined, basic API functions are expanded to the UTF-8 API with postfix U. Otherwise they are expanded to the UNICODE API with postfix W.

DESCRIPTION

The pmem2_perrorU()/pmem2_perrorW() function produces a message on standard error stream describing the last error encountered during library call.

pmem2_perrorU()/pmem2_perrorW() takes a variable number of arguments. First, the argument string format is printed - similarly to the printf(3), followed by a colon and a blank. Then an error message retrieved from the pmem2_errormsgU()/pmem2_errormsgW(), and a new-line. To see how the error message is generated, please see pmem2_errormsg(3).

SEE ALSO

libpmem2(7), perror(3), pmem2_errormsg(3), printf(3) and http://pmem.io

The contents of this web site and the associated GitHub repositories are BSD-licensed open source.