HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
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.
APPLICATION USAGE
The interfaces memccpy(), memchr(), memcmp(), memcpy(), memmove(), memset(),
bcopy(), bcmp(), bzero() and ffs() are thread-safe and async-cancel-safe.
WARNINGS
The functions defined in <
string.h> were previously defined in <memory.h>.
FILES
/usr/include/string.h
SEE ALSO
string(3C).
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
Section 3−−518 − 2 − HP-UX Release 11i: December 2000
___
___