memory.3c (2010 09)

m
memory(3C) memory(3C)
memset() Copy the value of c (converted to an
unsigned char) into each of the first n bytes of
the object pointed to by s .
memset() returns the value of s .
bcopy() copies n bytes from the area pointed to by s1 to the area pointed to by s2 .
bcmp() Compare the first n bytes of the area pointed to by s1 with the area pointed to by s2 .
bcmp() returns zero if they are identical; non-zero otherwise. Both areas are assumed
to be n bytes in length.
bzero() Clear n bytes in the area pointed to by s by setting them to zero.
ffs() Find the first bit set (beginning with the least significant bit) and return the index of that
bit. Bits are numbered starting at one. A return value of 0 indicates that i is zero.
International Code Set Support
These functions support only single-byte byte code sets.
WARNINGS
The functions defined in
<string.h> were previously defined in
<memory.h>.
FILES
/usr/include/string.h
SEE ALSO
string(3C), thread_safety(5), glossary(9).
STANDARDS CONFORMANCE
memccpy(): AES, SVID2, SVID3, XPG2, XPG3, XPG4
memchr(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, ANSI C
memcmp(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, ANSI C
memcpy(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, ANSI C
memmove(): AES, SVID3, XPG4, ANSI C
memset(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, ANSI C
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010