library is a portable, public domain C library. It aims at full conformance with ISO C89, C95, C99 and C11 when used in combination with a conformant compiler. In addition, it aims at conformance with the portion of ISO C++97 and C++2011 which is derived from said standards.
PDCLib aims for strict conformance with the selected C/C++ standard. Therefore, unlike most C libraries, it does not by default expose any extensions. Some extensions (from POSIX or the Single Unix Specification) can be selected by defining the appropriate feature selection macro, such as _POSIX_C_SOURCE or _XOPEN_SOURCE to the appropriate value. For example, in the following definition:
#define _XOPEN_SOURCE || _POSIX_C_SOURCE >= 200809L
char * strdup
(const char *
it is documented that defining either _XOPEN_SOURCE
to have a value greater than
before the first inclusion of <string.h>
will expose a definition of the function strdup
When compiled with a C compiler, conformant with ISO/IEC 9899:1990 (“ISO C90”), ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”), ISO/IEC 9899/TCOR1:1994 (“ISO C90, Technical Corrigendum 1”), ISO/IEC 9899/TCOR2:1995 (“ISO C90, Technical Corrigendum 2”), ISO/IEC 9899:1999 (“ISO C99”) or ISO/IEC 9899:2011 (“ISO C11”) as dependent upon the version of C the compiler declares conformance with.
When compiled with a C++ compiler, conformant with ISO/IEC 14882:1997 or ISO/IEC 14882:2011 "The C++ Programming Language" as dependent upon the version of C++ the compiler declares conformance with.