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/text/using-tchar-h-data-types-with-mbcs-code.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ When the manifest constant `_MBCS` is defined, a given generic-text routine maps
15
15
16
16
Following are three solutions for preventing this type conflict (and the C compiler warnings or C++ compiler errors that would result):
17
17
18
-
- Use the default behavior. Tchar.h provides generic-text routine prototypes for routines in the run-time libraries, as in the following example.
18
+
- Use the default behavior. tchar.h provides generic-text routine prototypes for routines in the run-time libraries, as in the following example.
19
19
20
20
```cpp
21
21
char * _tcsrev(char *);
@@ -29,7 +29,7 @@ Following are three solutions for preventing this type conflict (and the C compi
29
29
#define_USE_INLINING
30
30
```
31
31
32
-
This method causes an inline function thunk, provided in Tchar.h, to map the generic-text routine directly to the appropriate MBCS routine. The following code excerpt from Tchar.h provides an example of how this is done.
32
+
This method causes an inline function thunk, provided in tchar.h, to map the generic-text routine directly to the appropriate MBCS routine. The following code excerpt from tchar.h provides an example of how this is done.
33
33
34
34
```cpp
35
35
__inline char *_tcsrev(char *_s1)
@@ -44,7 +44,7 @@ Following are three solutions for preventing this type conflict (and the C compi
44
44
#define_MB_MAP_DIRECT
45
45
```
46
46
47
-
This approach provides a fast alternative if you donot want to use the default behavior or cannot use inlining. It causes the generic-text routine to be mapped by a macro directly to the MBCS version of the routine, as in the following example from Tchar.h.
47
+
This approach provides a fast alternative if you donot want to use the default behavior or cannot use inlining. It causes the generic-text routine to be mapped by a macro directly to the MBCS version of the routine, as in the following example from tchar.h.
48
48
49
49
```cpp
50
50
#define_tcschr_mbschr
@@ -54,4 +54,4 @@ Following are three solutions for preventing this type conflict (and the C compi
54
54
55
55
## See Also
56
56
57
-
[Generic-Text Mappings in Tchar.h](../text/generic-text-mappings-in-tchar-h.md)
57
+
[Generic-Text Mappings in tchar.h](../text/generic-text-mappings-in-tchar-h.md)
0 commit comments