From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/memory%2Ffree_aligned_sized.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 devdocs/c/memory%2Ffree_aligned_sized.html (limited to 'devdocs/c/memory%2Ffree_aligned_sized.html') diff --git a/devdocs/c/memory%2Ffree_aligned_sized.html b/devdocs/c/memory%2Ffree_aligned_sized.html new file mode 100644 index 00000000..f4aeba49 --- /dev/null +++ b/devdocs/c/memory%2Ffree_aligned_sized.html @@ -0,0 +1,20 @@ +

free_aligned_sized

Defined in header <stdlib.h>
void free_aligned_sized( void* ptr, size_t alignment, size_t size);
+
(since C23)

If ptr is a null pointer or the result obtained from a call to aligned_alloc, where alignment is equal to the requested allocation alignment and size is equal to the requested allocation size, this function is equivalent to free(ptr). Otherwise, the behavior is undefined.

+

Note: The result of an malloc, calloc, or realloc call may not be passed to free_aligned_sized.

+

Parameters

+ + + +
ptr - pointer to the memory to deallocate
alignment - alignment of memory to deallocate
size - size of memory to deallocate

Return value

(none)

+

Example

See also

+ + + +
+
(C11)
allocates aligned memory
(function)
deallocates previously allocated memory
(function)
+
(C23)
deallocates previously allocated sized memory
(function)
allocates memory
(function)
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/memory/free_aligned_sized +

+
-- cgit v1.2.3