Skip to content

Commit 93dbe31

Browse files
author
msebolt
committed
adjustments
1 parent 9966367 commit 93dbe31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/c-runtime-library/reference/gets-s-getws-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Returns *`buffer`* if successful. A **`NULL`** pointer indicates an error or end
4949
5050
## Remarks
5151
52-
The **`gets_s`** function reads a line from the standard input stream **`stdin`** and stores it in *`buffer`*. The line consists of all characters up to and including the first newline character ('\n'). **`gets_s`** then replaces the newline character with a null character ('\0') before returning the line. In contrast, the **`fgets_s`** function retains the newline character.
52+
The **`gets_s`** function reads a line from the standard input stream **`stdin`** and stores it in *`buffer`*. The line consists of all characters up to and including the first newline character ('`\n`'). **`gets_s`** then replaces the newline character with a null character ('`\0`') before returning the line. In contrast, the **`fgets_s`** function retains the newline character.
5353
5454
If the first character read is the end-of-file character, a null character is stored at the beginning of *`buffer`* and **`NULL`** is returned.
5555

docs/c-runtime-library/reference/stricmp-wcsicmp-mbsicmp-stricmp-l-wcsicmp-l-mbsicmp-l.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ Because **`_stricmp`** does lowercase comparisons, it may result in unexpected b
8282

8383
To illustrate when case conversion by **`_stricmp`** affects the outcome of a comparison, assume that you have the two strings JOHNSTON and JOHN_HENRY. The string JOHN_HENRY will be considered less than JOHNSTON because the "_" has a lower ASCII value than a lowercase S. In fact, any character that has an ASCII value between 91 and 96 will be considered less than any letter.
8484

85-
If the [`strcmp`](strcmp-wcscmp-mbscmp.md) function is used instead of **`_stricmp`**, JOHN_HENRY will be greater than JOHNSTON.
85+
If the [`strcmp`](strcmp-wcscmp-mbscmp.md) function is used instead of **`_stricmp`**, `JOHN_HENRY` will be greater than `JOHNSTON`.
8686

8787
**`_wcsicmp`** and **`_mbsicmp`** are wide-character and multibyte-character versions of **`_stricmp`**. The arguments and return value of **`_wcsicmp`** are wide-character strings; those of **`_mbsicmp`** are multibyte-character strings. **`_mbsicmp`** recognizes multibyte-character sequences according to the current multibyte code page and returns **`_NLSCMPERROR`** on an error. For more information, see [Code Pages](../../c-runtime-library/code-pages.md). These three functions behave identically otherwise.
8888

8989
**`_wcsicmp`** and **`wcscmp`** behave identically except that **`wcscmp`** does not convert its arguments to lowercase before comparing them. **`_mbsicmp`** and **`_mbscmp`** behave identically except that **`_mbscmp`** does not convert its arguments to lowercase before comparing them.
9090

91-
You will need to call [`setlocale`](setlocale-wsetlocale.md) for **`_wcsicmp`** to work with Latin 1 characters. The C locale is in effect by default, so, for example, ä will not compare equal to Ä. Call **`setlocale`** with any locale other than the C locale before the call to **`_wcsicmp`**. The following sample demonstrates how **`_wcsicmp`** is sensitive to the locale:
91+
You will need to call [`setlocale`](setlocale-wsetlocale.md) for **`_wcsicmp`** to work with Latin 1 characters. The C locale is in effect by default, so, for example, `ä` will not compare equal to `Ä`. Call **`setlocale`** with any locale other than the C locale before the call to **`_wcsicmp`**. The following sample demonstrates how **`_wcsicmp`** is sensitive to the locale:
9292

9393
```C
9494
// crt_stricmp_locale.c

0 commit comments

Comments
 (0)