Extensions to the C Library Part II: Dynamic Allocation Functions, ISO/IEC TR 24731-2:2010, defines the following new components for the C standard library:
|| integer constant of type long indicating conformance level |
|| opens a fixed-size memory buffer as an I/O stream |
|| opens a dynamically resized memory buffer as an I/O stream |
|| variants of sprintf etc that write to automatically-allocated buffer and return a pointer to it |
|| read from a stream into a automatically resized buffer until delimiter/end of line |
|| allocate a copy of a string |
|| allocate a copy of a string up to specified size |
This library extension also introduces assignment-allocation character
m for use with
%c conversion specifiers in fscanf and fwscanf family of functions.
strndup, and the extensions to
fscanf are available in POSIX (ISO/IEC 9945:2003).
vasprintf are available in Linux Standard Base (ISO/IEC IS 23360:2006)