utf16char.3c (2010 09)
u
utf16char(3C) utf16char(3C)
NAME
utf16char: memsetU16() - memory operations on 2-byte word
SYNOPSIS
#include <utf16char.h>
uint16_t *memsetU16(uint16_t *
s , int
c , size_t n );
DESCRIPTION
The memsetU16() function copies the value of c (converted to an
unsigned short int) into each of
the first n 2-byte words of the object pointed to by s .
memsetU16() returns the value of s .
Definition for this function, the type
size_t are provided in the <utf16char.h>
header file.
Notes
This API is incorporated into the
libcEnh
library. Applications need to link with the libcEnh library
(
-lcEnh) in order to use these APIs. For example:
cc test.c -lcEnh
ERRORS
No errors are defined.
EXAMPLES
The following code fragment shows the operation of
memsetU16():
uint16_t buf[5];
int c = 0x0000aabb
memsetU16(buf,c,5);
Result:
buf[0]=0xaabb
buf[1]=0xaabb
buf[2]=0xaabb
buf[3]=0xaabb
buf[4]=0xaabb
WARNINGS
The function is defined in <utf16char.h>
. If unaligned address s is passed, the behaviour of the API
is undefined.
AUTHOR
memsetU16() is developed by HP.
FILES
/usr/include/utf16char.h
SEE ALSO
thread_safety(5).
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1