std::free
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <cstdlib>
|
||
void free( void* ptr ); |
||
Freigibt den Raum zuvor von
malloc() zugeordnet, calloc() oder realloc(). Wenn ptr Null-Zeiger ist, hat die Funktion nichts .Original:
Deallocates the space previously allocated by
malloc(), calloc() or realloc(). If ptr is null-pointer, the function does nothing.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Das Verhalten ist undefiniert, wenn
ptr nicht passt ein Zeiger zurückgegeben zuvor von malloc(), calloc() oder realloc(). Auch ist das Verhalten nicht definiert, wenn der Speicherbereich, auf die ptr bereits freigegeben, dh, free() oder realloc() bereits mit ptr als das Argument und keine Anrufe zu berufen malloc(), calloc() oder realloc() resultierte in einem Zeiger gleich ptr danach .Original:
The behavior is undefined if
ptr does not match a pointer returned earlier by malloc(), calloc() or realloc(). Also, the behavior is undefined if the memory area referred to by ptr has already been deallocated, that is, free() or realloc() has already been called with ptr as the argument and no calls to malloc(), calloc() or realloc() resulted in a pointer equal to ptr afterwards.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| ptr | - | Zeiger auf den Speicher, um freizugeben
Original: pointer to the memory to deallocate The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
C documentation for free
|