Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Dynamic memory extensions

      From cppreference.com
      <c‎ |experimental
       
       
       
       

      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:

      __STDC_ALLOC_LIB__
      integer constant of typelong indicating conformance level
      (macro constant)
      Defined in header<stdio.h>
      (dynamic memory TR)
      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 ofsprintf 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]
      Defined in header<string.h>
      (dynamic memory TR)
      allocate a copy of a string
      (function)[edit]
      (dynamic memory TR)
      allocate a copy of a string up to specified size
      (function)[edit]

      This library extension also introduces assignment-allocation characterm for use with%s,%[, and%c conversion specifiers infscanf andfwscanf family of functions.

      [edit]Notes

      The functionsfmemopen,open_memstream,open_wmemstream,getdelim,getline,strdup,strndup, and the extensions tofscanf are available inPOSIX (ISO/IEC 9945:2003).

      The functionsasprintf andvasprintf are available in Linux Standard Base (ISO/IEC IS 23360:2006)

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/experimental/dynamic&oldid=104628"

      [8]ページ先頭

      ©2009-2025 Movatter.jp