Skip to content

Commit 397b9b8

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#3561 from MicrosoftDocs/master637738941693270272
Repo sync for protected CLA branch
2 parents eedf244 + 4d14494 commit 397b9b8

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

docs/c-runtime-library/reference/memset-wmemset.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "memset, wmemset"
33
description: "Learn more about: memset, wmemset"
4-
ms.date: "1/15/2021"
4+
ms.date: "11/29/2021"
55
api_name: ["wmemset", "memset", "_o_memset"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ntdll.dll", "ucrtbase.dll", "api-ms-win-crt-string-l1-1-0.dll", "ntoskrnl.exe", "api-ms-win-crt-private-l1-1-0.dll"]
77
api_type: ["DLLExport"]
@@ -11,7 +11,7 @@ helpviewer_keywords: ["wmemset function", "memset function"]
1111
---
1212
# `memset`, `wmemset`
1313

14-
Sets buffers to a specified character.
14+
Sets a buffer to a specified character.
1515

1616
## Syntax
1717

@@ -108,7 +108,7 @@ int main( void )
108108
wchar_t buffer[] = L"This is a test of the wmemset function";
109109

110110
wprintf( L"Before: %s\n", buffer );
111-
wmemset( buffer, '*', 4 );
111+
wmemset( buffer, L'*', 4 );
112112
wprintf( L"After: %s\n", buffer );
113113
}
114114
```
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
description: "Learn more about: wbuffer_convert Class"
3-
title: "wbuffer_convert Class"
4-
ms.date: "11/04/2016"
2+
description: "Learn more about: wbuffer_convert class"
3+
title: "wbuffer_convert class"
4+
ms.date: "11/29/2021"
55
f1_keywords: ["xlocmon/stdext::cvt::wbuffer_convert"]
66
helpviewer_keywords: ["wbuffer_convert class"]
7-
ms.assetid: 4a56f9bf-4138-4612-b516-525fea401358
87
---
9-
# wbuffer_convert Class
8+
# `wbuffer_convert` class
109

1110
Describes a stream buffer that controls the transmission of elements to and from a byte stream buffer.
1211

@@ -20,14 +19,14 @@ class wbuffer_convert
2019
2120
### Parameters
2221
23-
*Codecvt*\
24-
The [locale](../standard-library/locale-class.md) facet that represents the conversion object.
22+
*`Codecvt`*\
23+
The [`locale`](../standard-library/locale-class.md) facet that represents the conversion object.
2524
26-
*Elem*\
25+
*`Elem`*\
2726
The wide-character element type.
2827
29-
*Traits*\
30-
The traits associated with *Elem*.
28+
*`Traits`*\
29+
The traits associated with *`Elem`*.
3130
3231
## Remarks
3332
@@ -37,6 +36,5 @@ Conversion between a sequence of `Elem` values and multibyte sequences is perfor
3736
3837
An object of this class template stores:
3938
40-
- A pointer to its underlying byte stream buffer
41-
42-
- A pointer to the allocated conversion object (which is freed when the [wbuffer_convert](../standard-library/wbuffer-convert-class.md)
39+
- A pointer to its underlying byte stream buffer.\
40+
- A pointer to an allocated conversion facet object, which is freed when the `wbuffer_convert`is destroyed.

0 commit comments

Comments
 (0)