A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://en.cppreference.com/w/cpp/../cpp/../cpp/../cpp/../c/header/../experimental/dynamic.html below:

Dynamic memory extensions - cppreference.com

Dynamic memory extensions

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
(macro constant) opens a fixed-size memory buffer as an I/O stream
(function) [edit] opens a dynamically resized memory buffer as an I/O stream
(function) [edit] variants of sprintf etc that write to automatically-allocated buffer and return a pointer to it
(function) [edit] read from a stream into an automatically resized buffer until delimiter/end of line
(function) [edit] allocate a copy of a string
(function) [edit] allocate a copy of a string up to specified size
(function) [edit]

This library extension also introduces assignment-allocation character m for use with %s, %[, and %c conversion specifiers in fscanf and fwscanf family of functions.

[edit] Notes

The functions fmemopen, open_memstream, open_wmemstream, getdelim, getline, strdup, strndup, and the extensions to fscanf are available in POSIX (ISO/IEC 9945:2003).

The functions asprintf and vasprintf are available in Linux Standard Base (ISO/IEC IS 23360:2006)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4