Skip to content

Commit 13bbe13

Browse files
authored
Merge pull request #2484 from mjp41/patch-1
Update aligned-msize.md
2 parents f1d196b + 9bfbdab commit 13bbe13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/c-runtime-library/reference/aligned-msize.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Returns the size of a memory block allocated in the heap.
1616
## Syntax
1717

1818
```C
19-
size_t _msize(
19+
size_t _aligned_msize(
2020
void *memblock,
2121
size_t alignment,
2222
size_t offset
@@ -44,15 +44,15 @@ The **_aligned_msize** function returns the size, in bytes, of the memory block
4444

4545
When the application is linked with a debug version of the C run-time libraries, **_aligned_msize** resolves to [_aligned_msize_dbg](aligned-msize-dbg.md). For more information about how the heap is managed during the debugging process, see [The CRT Debug Heap](/visualstudio/debugger/crt-debug-heap-details).
4646

47-
This function validates its parameter. If *memblock* is a null pointer or *alignment* is not a power of 2, **_msize** invokes an invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If the error is handled, the function sets **errno** to **EINVAL** and returns -1.
47+
This function validates its parameter. If *memblock* is a null pointer or *alignment* is not a power of 2, **_aligned_msize** invokes an invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If the error is handled, the function sets **errno** to **EINVAL** and returns -1.
4848

4949
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
5050

5151
## Requirements
5252

5353
|Routine|Required header|
5454
|-------------|---------------------|
55-
|**_msize**|\<malloc.h>|
55+
|**_aligned_msize**|\<malloc.h>|
5656

5757
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
5858

0 commit comments

Comments
 (0)