OpenBSD Handbook Manuals
Search

wmemset(3)

Canonical URL: /wmemset.3/

WMEMSET(3) Library Functions Manual WMEMSET(3)

wmemsetwrite a wide string

#include <wchar.h>

wchar_t *
wmemset(wchar_t *s, wchar_t c, size_t len);

The () function writes len wide characters of value c to the wide string s.

The wmemset() function returns the original value of s.

memset(3)

The wmemset() function conforms to ISO/IEC 9899:1999 (“ISO C99”) and was first introduced in ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”).

The wmemset() function was ported from NetBSD and first appeared in OpenBSD 3.8.

June 5, 2013 Linux 7.1.13-200.fc44.x86_64

Need conceptual guidance? Continue in the OpenBSD Handbook.