Freigeben über


_strset, _wcsset (Windows CE 5.0)

Send Feedback

Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Library Reference

Set characters of a string to a character.

char *_strset( char *string, int c );wchar_t *_wcsset( wchar_t *string, wchar_tc );

Parameters

  • string
    Null-terminated string to be set.
  • c
    Character setting.

Return Values

Both of these functions return a pointer to the altered string. No return value is reserved to indicate an error.

Remarks

These functions are supported by all versions of the C run-time libraries.

The _strset function sets all the characters of string to c (converted to char), except the terminating null character.

_wcsset is a wide-character version of _strset. The data types of the arguments and return values vary accordingly. These two functions behave identically otherwise.

The following table shows generic-text routine mappings for this function.

TCHAR.H Routine _UNICODE Defined
_tcsset _wcsset

For more information about TCHAR.H routines, see Generic Text Mappings.

Requirements

OS Versions: Windows CE 2.0 and later.

Header: stdio.h, string.h.

Link Library: coredll.dll.

See Also

memset | strcat | strcmp | strcpy

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.