Skip to content

Commit efab6a4

Browse files
Merge pull request #5006 from TylerMSFT/github4669
fix function signature
2 parents dd2916f + 0e0c4a8 commit efab6a4

File tree

1 file changed

+2
-2
lines changed
  • docs/c-runtime-library/reference

1 file changed

+2
-2
lines changed

docs/c-runtime-library/reference/qsort.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "qsort"
33
description: "Describes the Microsoft C runtime quick sort API `qsort`"
4-
ms.date: "10/23/2020"
4+
ms.date: "8/2/2023"
55
api_name: ["qsort", "_o_qsort"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ntdll.dll", "ucrtbase.dll", "api-ms-win-crt-utility-l1-1-0.dll", "ntoskrnl.exe"]
77
api_type: ["DLLExport"]
@@ -45,7 +45,7 @@ The **`qsort`** function implements a quick-sort algorithm to sort an array of *
4545
**`qsort`** calls the *`compare`* routine one or more times during the sort, and passes pointers to two array elements on each call. If *`compare`* indicates two elements are the same, their order in the resulting sorted array is unspecified.
4646

4747
```C
48-
compare( (void *) & elem1, (void *) & elem2 );
48+
compare(const void *elem1, const void *elem2);
4949
```
5050
5151
The routine compares the elements and returns one of the following values.

0 commit comments

Comments
 (0)