You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix issues in valarray content
* Acrolinx pass
* Update scanf %c to mention field width
As part of UCRT refactoring, we introduced an undocumented breaking change that follows the C standard that changed out %c specifier from following the usual rules for field width to using the standardized exception for the %c specifier. We should document it.
* Broken link fixed
* Broken link fixed
* Update dynamicbase.md
arm32 and arm64 is not supported for this linker switch as ASLR cannot be disabled for these architectures.
* update code examples
* offer an alternative project type
* fix for github #3859
* acrolinx
* Clarify per Russ' comments
Also update date and add formatting to current standard.
* Work in progress for 17.2 release
* Followup cpp-docs 3871 in linker opts
* Fix grammar and formatting issues
* Update latest-supported-vc-redist.md
In the line 35, at the very end removed an extra dot.
* Fix alarming bidi description
* text tweaks
* Address cpp-docs 3857 3865 3877 3882
* simplify code example-related to github #3847 (#4272)
* simplify code example-related to github #3847
* right justify output
* Update docs/c-runtime-library/reference/getdiskfree.md
Co-authored-by: TylerMSFT <[email protected]>
Co-authored-by: Shannon Leavitt <[email protected]>
* fix for github 3787
* acrolinx pass
* more acrolinx
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Steve Wishnousky <[email protected]>
Co-authored-by: opbld17 <[email protected]>
Co-authored-by: Pritam Ovhal <[email protected]>
Co-authored-by: Lauren Prinn <[email protected]>
Co-authored-by: PRMerger16 <[email protected]>
Co-authored-by: TylerMSFT <[email protected]>
Co-authored-by: PRMerger4 <[email protected]>
Co-authored-by: Tamara K <[email protected]>
Co-authored-by: Matin Sasanpour <[email protected]>
Co-authored-by: Courtney Wales <[email protected]>
Co-authored-by: Dennis Rea <[email protected]>
Co-authored-by: Colin Cooper <[email protected]>
Co-authored-by: Carolyn McSharry <[email protected]>
Co-authored-by: PRMerger12 <[email protected]>
Co-authored-by: Tyler Whitney <[email protected]>
Co-authored-by: Shannon Leavitt <[email protected]>
Co-authored-by: Anna Huff <[email protected]>
Uses information about a disk drive to populate a **_diskfree_t** structure.
14
+
Get information about a disk drive such as total clusters, available clusters, sectors per cluster, and bytes per sector.
16
15
17
16
> [!IMPORTANT]
18
17
> This API cannot be used in applications that execute in the Windows Runtime. For more information, see [CRT functions not supported in Universal Windows Platform apps](../../cppcx/crt-functions-not-supported-in-universal-windows-platform-apps.md).
@@ -28,19 +27,19 @@ unsigned _getdiskfree(
28
27
29
28
### Parameters
30
29
31
-
*drive*<br/>
30
+
*`drive`*\
32
31
The disk drive for which you want information.
33
32
34
-
*driveinfo*<br/>
35
-
A **_diskfree_t** structure that will be populated with information about the drive.
33
+
*`driveinfo`*\
34
+
A **`_diskfree_t`** structure that will be populated with information about the drive.
36
35
37
36
## Return Value
38
37
39
-
If the function succeeds, the return value is zero. If the function fails, the return value is the error code. The value **errno** is set for any errors that are returned by the operating system. For more information about error conditions that are indicated by **errno**, see [errno Constants](../../c-runtime-library/errno-constants.md).
38
+
If the function succeeds, the return value is zero. If the function fails, the return value is the error code. The value **`errno`** is set for any errors that are returned by the operating system. For more information about error conditions that are indicated by **`errno`**, see [`errno` constants](../../c-runtime-library/errno-constants.md).
40
39
41
40
## Remarks
42
41
43
-
The **_diskfree_t** structure is defined in Direct.h.
42
+
The **`_diskfree_t`** structure is defined in Direct.h.
44
43
45
44
```C
46
45
struct_diskfree_t {
@@ -51,15 +50,15 @@ struct _diskfree_t {
51
50
};
52
51
```
53
52
54
-
This function validates its parameters. If the *driveinfo* pointer is **NULL** or *drive* specifies an invalid drive, this function invokes an invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, the function returns **EINVAL** and sets **errno** to **EINVAL**. Valid drives range from 0 to 26. A *drive* value of 0 specifies the current drive; thereafter, numbers map to letters of the English alphabet such that 1 indicates drive A, 3 indicates drive C, and so on.
53
+
This function validates its parameters. If the *`driveinfo`* pointer is **`NULL`** or *`drive`* specifies an invalid drive, this function invokes an invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, the function returns **`EINVAL`** and sets **`errno`** to **`EINVAL`**. Valid drives range from 0 to 26. A *drive* value of 0 specifies the current drive; thereafter, numbers map to letters of the English alphabet such that 1 indicates drive A, 3 indicates drive C, and so on.
55
54
56
55
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
57
56
58
57
## Requirements
59
58
60
59
|Routine|Required header|
61
60
|-------------|---------------------|
62
-
|**_getdiskfree**|\<direct.h>|
61
+
|**`_getdiskfree`**|`<direct.h>`|
63
62
64
63
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
65
64
@@ -71,100 +70,47 @@ For more compatibility information, see [Compatibility](../../c-runtime-library/
|`c`|Character. When used with `scanf` functions, specifies single-byte character; when used with `wscanf` functions, specifies wide character. White-space characters that are ordinarily skipped are read when `c` is specified. To read next non-white-space single-byte character, use `%1s`; to read next non-white-space wide character, use `%1ws`.|Pointer to **`char`** when used with `scanf` functions, pointer to **`wchar_t`** when used with `wscanf` functions.|Required. Size does not include space for a null terminator.|
18
-
|`C`|Opposite size character. When used with `scanf` functions, specifies wide character; when used with `wscanf` functions, specifies single-byte character. White-space characters that are ordinarily skipped are read when `C` is specified. To read next non-white-space single-byte character, use `%1s`; to read next non-white-space wide character, use `%1ws`.|Pointer to **`wchar_t`** when used with `scanf` functions, pointer to **`char`** when used with `wscanf` functions.|Required. Size argument does not include space for a null terminator.|
17
+
|`c`|Character. When used with `scanf` functions, specifies single-byte character; when used with `wscanf` functions, specifies wide character. White-space characters that are ordinarily skipped are read when `c` is specified. Unlike with other type fields, the field width specifier indicates the exact number of characters, not the maximum. To read next non-white-space single-byte character, use `%1s`; to read next non-white-space wide character, use `%1ws`.|Pointer to **`char`** when used with `scanf` functions, pointer to **`wchar_t`** when used with `wscanf` functions.|Required. Size does not include space for a null terminator.|
18
+
|`C`|Opposite size character. When used with `scanf` functions, specifies wide character; when used with `wscanf` functions, specifies single-byte character. White-space characters that are ordinarily skipped are read when `C` is specified. Unlike with other type fields, the field width specifier indicates the exact number of characters, not the maximum. To read next non-white-space single-byte character, use `%1s`; to read next non-white-space wide character, use `%1ws`.|Pointer to **`wchar_t`** when used with `scanf` functions, pointer to **`char`** when used with `wscanf` functions.|Required. Size argument does not include space for a null terminator.|
19
19
|`d`|Decimal integer.|Pointer to **`int`**.|No.|
20
20
|`i`|An integer. Hexadecimal if the input string begins with "0x" or "0X", octal if the string begins with "0", otherwise decimal.|Pointer to **`int`**.|No.|
0 commit comments