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
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/sopen-s-wsopen-s.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ A nonzero return value indicates an error; in that case `errno` is set to one of
62
62
|`EMFILE`| No more file descriptors available. |
63
63
|`ENOENT`| File or path not found. |
64
64
65
-
If an invalid argument is passed to the function, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `errno` is set to `EINVAL` and `EINVAL` is returned.
65
+
If an invalid argument is passed to the function, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `errno` is set to `EINVAL`, and `EINVAL` is returned.
66
66
67
67
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnl-wspawnl.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,14 +51,14 @@ List of pointers to arguments. The *`arg0`* argument is usually a pointer to *`c
51
51
52
52
## Return value
53
53
54
-
The return value from a synchronous **`_spawnl`** or **`_wspawnl`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnl`** or **`_wspawnl`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
54
+
The return value from a synchronous **`_spawnl`** or **`_wspawnl`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnl`** or **`_wspawnl`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
55
55
56
56
| Value | Description |
57
57
|--|--|
58
58
|`E2BIG`| Argument list exceeds 1024 bytes. |
59
59
|`EINVAL`|*`mode`* argument is invalid. |
60
-
|`ENOENT`| File or path is not found. |
61
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
60
+
|`ENOENT`| File or path isn't found. |
61
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
62
62
|`ENOMEM`| Not enough memory is available to execute the new process. |
63
63
64
64
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnle-wspawnle.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,14 +56,14 @@ Array of pointers to environment settings.
56
56
57
57
## Return value
58
58
59
-
The return value from a synchronous **`_spawnle`** or **`_wspawnle`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnle`** or **`_wspawnle`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
59
+
The return value from a synchronous **`_spawnle`** or **`_wspawnle`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnle`** or **`_wspawnle`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
60
60
61
61
| Value | Description |
62
62
|--|--|
63
63
|`E2BIG`| Argument list exceeds 1024 bytes. |
64
64
|`EINVAL`|*`mode`* argument is invalid. |
65
-
|`ENOENT`| File or path is not found. |
66
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
65
+
|`ENOENT`| File or path isn't found. |
66
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
67
67
|`ENOMEM`| Not enough memory is available to execute the new process. |
68
68
69
69
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnlp-wspawnlp.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,14 +51,14 @@ List of pointers to arguments. The *`arg0`* argument is usually a pointer to *`c
51
51
52
52
## Return value
53
53
54
-
The return value from a synchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
54
+
The return value from a synchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
55
55
56
56
| Value | Description |
57
57
|-|-|
58
58
|`E2BIG`| Argument list exceeds 1024 bytes. |
59
59
|`EINVAL`|*`mode`* argument is invalid. |
60
-
|`ENOENT`| File or path is not found. |
61
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
60
+
|`ENOENT`| File or path isn't found. |
61
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
62
62
|`ENOMEM`| Not enough memory is available to execute the new process. |
63
63
64
64
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnlpe-wspawnlpe.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,14 +56,14 @@ Array of pointers to environment settings.
56
56
57
57
## Return value
58
58
59
-
The return value from a synchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit caused by an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
59
+
The return value from a synchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit caused by an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
60
60
61
61
| Value | Description |
62
62
|-|-|
63
63
|`E2BIG`| Argument list exceeds 1024 bytes. |
64
64
|`EINVAL`|*`mode`* argument is invalid. |
65
-
|`ENOENT`| File or path is not found. |
66
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
65
+
|`ENOENT`| File or path isn't found. |
66
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
67
67
|`ENOMEM`| Not enough memory is available to execute the new process. |
68
68
69
69
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnv-wspawnv.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,14 +45,14 @@ Array of pointers to arguments. The argument *`argv[0]`* is usually a pointer to
45
45
46
46
## Return value
47
47
48
-
The return value from a synchronous **`_spawnv`** or **`_wspawnv`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnv`** or **`_wspawnv`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
48
+
The return value from a synchronous **`_spawnv`** or **`_wspawnv`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnv`** or **`_wspawnv`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
49
49
50
50
| Value | Description |
51
51
|-|-|
52
52
|`E2BIG`| Argument list exceeds 1024 bytes. |
53
53
|`EINVAL`|*`mode`* argument is invalid. |
54
-
|`ENOENT`| File or path is not found. |
55
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
54
+
|`ENOENT`| File or path isn't found. |
55
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
56
56
|`ENOMEM`| Not enough memory is available to execute the new process. |
57
57
58
58
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnve-wspawnve.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,14 +50,14 @@ Array of pointers to environment settings.
50
50
51
51
## Return value
52
52
53
-
The return value from a synchronous **`_spawnve`** or **`_wspawnve`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnve`** or **`_wspawnve`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
53
+
The return value from a synchronous **`_spawnve`** or **`_wspawnve`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnve`** or **`_wspawnve`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
54
54
55
55
| Value | Description |
56
56
|-|-|
57
57
|`E2BIG`| Argument list exceeds 1024 bytes. |
58
58
|`EINVAL`|*`mode`* argument is invalid. |
59
-
|`ENOENT`| File or path is not found. |
60
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
59
+
|`ENOENT`| File or path isn't found. |
60
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
61
61
|`ENOMEM`| Not enough memory is available to execute the new process. |
62
62
63
63
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/spawnvp-wspawnvp.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,17 +45,17 @@ Array of pointers to arguments. The argument *`argv[0]`* is usually a pointer to
45
45
46
46
## Return value
47
47
48
-
The return value from a synchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values:
48
+
The return value from a synchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values:
49
49
50
50
| Value | Description |
51
51
|-|-|
52
52
|`E2BIG`| Argument list exceeds 1024 bytes. |
53
53
|`EINVAL`|*`mode`* argument is invalid. |
54
-
|`ENOENT`| File or path is not found. |
55
-
|`ENOEXEC`| Specified file is not executable or has invalid executable-file format. |
54
+
|`ENOENT`| File or path isn't found. |
55
+
|`ENOEXEC`| Specified file isn't executable or has invalid executable-file format. |
56
56
|`ENOMEM`| Not enough memory is available to execute the new process. |
57
57
58
-
For more information about these, and other, return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
58
+
For more information about return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
Breaks a path name into components. These are versions of [`_splitpath`, `_wsplitpath`](splitpath-wsplitpath.md) with security enhancements as described in [Security features in the CRT](../security-features-in-the-crt.md).
15
+
Breaks a path name into components. These functions are versions of [`_splitpath`, `_wsplitpath`](splitpath-wsplitpath.md) with security enhancements as described in [Security features in the CRT](../security-features-in-the-crt.md).
16
16
17
17
## Syntax
18
18
@@ -63,25 +63,25 @@ errno_t _wsplitpath_s(
63
63
Full path.
64
64
65
65
*`drive`*\
66
-
Drive letter, followed by a colon (**`:`**). You can pass `NULL` for this parameter if you do not need the drive letter.
66
+
Drive letter, followed by a colon (**`:`**). You can pass `NULL` for this parameter if you don't need the drive letter.
67
67
68
68
*`driveNumberOfElements`*\
69
69
The size of the *`drive`* buffer in single-byte or wide characters. If *`drive`* is `NULL`, this value must be 0.
70
70
71
71
*`dir`*\
72
-
Directory path, including trailing slash. Forward slashes ( **`/`** ), backslashes ( **`\\`** ), or both may be used. You can pass `NULL` for this parameter if you do not need the directory path.
72
+
Directory path, including trailing slash. Forward slashes ( **`/`** ), backslashes ( **`\\`** ), or both may be used. You can pass `NULL` for this parameter if you don't need the directory path.
73
73
74
74
*`dirNumberOfElements`*\
75
75
The size of the *`dir`* buffer in single-byte or wide characters. If *`dir`* is `NULL`, this value must be 0.
76
76
77
77
*`fname`*\
78
-
Base filename (without extension). You can pass `NULL` for this parameter if you do not need the filename.
78
+
Base filename (without extension). You can pass `NULL` for this parameter if you don't need the filename.
79
79
80
80
*`nameNumberOfElements`*\
81
81
The size of the *`fname`* buffer in single-byte or wide characters. If *`fname`* is `NULL`, this value must be 0.
82
82
83
83
*`ext`*\
84
-
Filename extension, including leading period (**`.`**). You can pass `NULL` for this parameter if you do not need the filename extension.
84
+
Filename extension, including leading period (**`.`**). You can pass `NULL` for this parameter if you don't need the filename extension.
85
85
86
86
*`extNumberOfElements`*\
87
87
The size of *`ext`* buffer in single-byte or wide characters. If *`ext`* is `NULL`, this value must be 0.
@@ -131,7 +131,7 @@ The following table lists the values of the manifest constants.
131
131
|`_MAX_FNAME`|256|
132
132
|`_MAX_EXT`|256|
133
133
134
-
If the full path does not contain a component (for example, a filename), **`_splitpath_s`** assigns an empty string to the corresponding buffer.
134
+
If the full path doesn't contain a component (for example, a filename), **`_splitpath_s`** assigns an empty string to the corresponding buffer.
135
135
136
136
In C++, using these functions is simplified by template overloads; the overloads can infer buffer length automatically, eliminating the need to specify a size argument. For more information, see [Secure template overloads](../secure-template-overloads.md).
0 commit comments