Skip to content

Commit d5f4959

Browse files
changes after review
1 parent 18ee232 commit d5f4959

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎docs/atl-mfc-shared/string-data-management.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ helpviewer_keywords: ["Unicode, string objects"]
88

99
Visual C++ provides several ways to manage string data:
1010

11-
- [String Manipulation](../c-runtime-library/string-manipulation-crt.md) for working with C-style null-terminated strings
11+
- [String Manipulation](../c-runtime-library/string-manipulation-crt.md) for working with C-style `NULL`-terminated strings
1212

1313
- Win32 API functions for managing strings
1414

‎docs/c-runtime-library/exec-wexec-functions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Each `_exec` function loads and executes a new process. All `_exec` functions us
5757

5858
The `cmdname` parameter specifies the file to be executed as the new process. It can specify a full path (from the root), a partial path (from the current working directory), or a file name. If `cmdname` doesn't have a file name extension or doesn't end with a period (.), the `_exec` function searches for the named file. If the search is unsuccessful, it tries the same base name with the .com file name extension and then with the .exe, .bat, and .cmd file name extensions. If `cmdname` has a file name extension, only that extension is used in the search. If `cmdname` ends with a period, the `_exec` function searches for `cmdname` with no file name extension. `_execlp`, `_execlpe`, `_execvp`, and `_execvpe` search for `cmdname` (using the same procedures) in the directories specified by the `PATH` environment variable. If `cmdname` contains a drive specifier or any slashes (that is, if it's a relative path), the `_exec` call searches only for the specified file; the path isn't searched.
5959

60-
Parameters are passed to the new process by giving one or more pointers to character strings as parameters in the `_exec` call. These character strings form the parameter list for the new process. The combined length of the inherited environment settings and the strings forming the parameter list for the new process must not exceed 32 kilobytes. The terminating null character (`\0`) for each string isn't included in the count, but space characters (inserted automatically to separate the parameters) are counted.
60+
Parameters are passed to the new process by giving one or more pointers to character strings as parameters in the `_exec` call. These character strings form the parameter list for the new process. The combined length of the inherited environment settings and the strings forming the parameter list for the new process must not exceed 32 kilobytes. The terminating `NULL` character (`\0`) for each string isn't included in the count, but space characters (inserted automatically to separate the parameters) are counted.
6161

6262
> [!NOTE]
6363
> Spaces embedded in strings may cause unexpected behavior; for example, passing `_exec` the string `"hi there"` will result in the new process getting two arguments, `"hi"` and `"there"`. If the intent was to have the new process open a file named "hi there", the process would fail. You can avoid this by quoting the string: `"\"hi there\""`.

‎docs/c-runtime-library/filename-search-functions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Time of the last write to file. This time is stored in UTC format. To convert to
3939
Length of the file in bytes.
4040

4141
`char name`[ `_MAX_PATH`]
42-
Null-terminated name of matched file or directory, without the path.
42+
`NULL`-terminated name of matched file or directory, without the path.
4343

4444
In file systems that don't support the creation and last access times of a file, such as the FAT system, the `time_create` and `time_access` fields are always `-1L`.
4545

‎docs/c-runtime-library/reference/strtoul-strtoul-l-wcstoul-wcstoul-l.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ See [`_doserrno`, `errno`, `_sys_errlist`, and `_sys_nerr`](../../c-runtime-libr
6464

6565
Each of these functions converts the input string *`strSource`* to an **`unsigned long`**.
6666

67-
**`strtoul`** stops reading the string *`strSource`* at the first character it can’t recognize as part of a number. This may be the terminating null character, or it may be the first numeric character greater than or equal to *`base`*. The **`LC_NUMERIC`** category setting of the locale determines recognition of the radix character in *`strSource`*; for more information, see [`setlocale`](setlocale-wsetlocale.md). **`strtoul`** and **`wcstoul`** use the current locale; **`_strtoul_l`** and **`_wcstoul_l`** are identical except that they use the locale passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
67+
**`strtoul`** stops reading the string *`strSource`* at the first character it can’t recognize as part of a number. This may be the terminating `NULL` character, or it may be the first numeric character greater than or equal to *`base`*. The **`LC_NUMERIC`** category setting of the locale determines recognition of the radix character in *`strSource`*; for more information, see [`setlocale`](setlocale-wsetlocale.md). **`strtoul`** and **`wcstoul`** use the current locale; **`_strtoul_l`** and **`_wcstoul_l`** are identical except that they use the locale passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
6868

6969
If *`endptr`* isn't **`NULL`**, a pointer to the character that stopped the scan is stored at the location pointed to by *`endptr`*. If no conversion can be performed (no valid digits were found or an invalid base was specified), the value of *`strSource`* is stored at the location pointed to by *`endptr`*.
7070

‎docs/c-runtime-library/reference/wcstombs-wcstombs-l.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The locale to use.
5858

5959
## Return Value
6060

61-
If **`wcstombs`** successfully converts the multibyte string, it returns the number of bytes written into the multibyte output string, excluding the terminating null (if any). If the *`mbstr`* argument is **`NULL`**, **`wcstombs`** returns the required size in bytes of the destination string. If **`wcstombs`** encounters a wide character it can’t convert to a multibyte character, it returns -1 cast to type **`size_t`** and sets **`errno`** to **`EILSEQ`**.
61+
If **`wcstombs`** successfully converts the multibyte string, it returns the number of bytes written into the multibyte output string, excluding the terminating `NULL` (if any). If the *`mbstr`* argument is **`NULL`**, **`wcstombs`** returns the required size in bytes of the destination string. If **`wcstombs`** encounters a wide character it can’t convert to a multibyte character, it returns -1 cast to type **`size_t`** and sets **`errno`** to **`EILSEQ`**.
6262

6363
## Remarks
6464

‎docs/mfc/reference/cformview-class.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CFormView(UINT nIDTemplate);
6969
### Parameters
7070

7171
*`lpszTemplateName`*\
72-
Contains a null-terminated string that is the name of a dialog-template resource.
72+
Contains a `NULL`-terminated string that is the name of a dialog-template resource.
7373

7474
*`nIDTemplate`*\
7575
Contains the ID number of a dialog-template resource.

‎docs/standard-library/input-streams.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The `istream` class is best used for sequential text-mode input. You can configu
1212

1313
The `ifstream` class supports disk file input. If you need an input-only disk file, construct an object of class `ifstream`. You can specify binary or text-mode data. If you specify a filename in the constructor, the file is automatically opened when the object is constructed. Otherwise, you can use the `open` function after invoking the default constructor. Many formatting options and member functions apply to `ifstream` objects. All functionality of the base classes `ios` and `istream` is included in `ifstream`.
1414

15-
Like the library function `sscanf_s`, the `istringstream` class supports input from in-memory strings. To extract data from a character array that has a null terminator, allocate and initialize the string, then construct an object of class `istringstream`.
15+
Like the library function `sscanf_s`, the `istringstream` class supports input from in-memory strings. To extract data from a character array that has a `NULL` terminator, allocate and initialize the string, then construct an object of class `istringstream`.
1616

1717
## In This Section
1818

0 commit comments

Comments
 (0)