Skip to content

Commit 508659d

Browse files
authored
Add missing leading underscore for _MBCS and _mbsrev in "Using generic-text mappings" topic
1 parent 2643b99 commit 508659d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/c-runtime-library/using-generic-text-mappings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To simplify code development for various international markets, the Microsoft ru
2121
| `_MBCS` | Multibyte-character | `_tcsrev` maps to `_mbsrev` |
2222
| None (the default: both `_UNICODE` and `_MBCS` not defined) | SBCS (ASCII) | `_tcsrev` maps to `strrev` |
2323

24-
For example, the generic-text function `_tcsrev`, defined in TCHAR.H, maps to `mbsrev` if `MBCS` has been defined in your program, or to `_wcsrev` if `_UNICODE` has been defined. Otherwise `_tcsrev` maps to `strrev`.
24+
For example, the generic-text function `_tcsrev`, defined in TCHAR.H, maps to `_mbsrev` if `_MBCS` has been defined in your program, or to `_wcsrev` if `_UNICODE` has been defined. Otherwise `_tcsrev` maps to `strrev`.
2525

2626
The generic-text data type `_TCHAR`, also defined in TCHAR.H, maps to type **`char`** if `_MBCS` is defined, to type **`wchar_t`** if `_UNICODE` is defined, and to type **`char`** if neither constant is defined. Other data type mappings are provided in TCHAR.H for programming convenience, but `_TCHAR` is the type that is most useful.
2727

@@ -45,7 +45,7 @@ _TCHAR *RetVal, *szString;
4545
RetVal = _tcsrev(szString);
4646
```
4747

48-
If `MBCS` has been defined, the preprocessor maps the preceding fragment to the following code:
48+
If `_MBCS` has been defined, the preprocessor maps the preceding fragment to the following code:
4949

5050
```C
5151
char *RetVal, *szString;

0 commit comments

Comments
 (0)