Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Buffer Manipulation

Visual Studio 6.0

Use these routines to work with areas of memory on a byte-by-byte basis.

Buffer-Manipulation Routines

Routine Use
_memccpy Copy characters from one buffer to another until given character or given number of characters has been copied
memchr Return pointer to first occurrence, within specified number of characters, of given character in buffer
memcmp Compare specified number of characters from two buffers
memcpy Copy specified number of characters from one buffer to another
_memicmp Compare specified number of characters from two buffers without regard to case
memmove Copy specified number of characters from one buffer to another
memset Use given character to initialize specified number of bytes in the buffer
_swab Swap bytes of data and store them at specified location

When the source and target areas overlap, only memmove is guaranteed to copy the full source properly.

Show:
© 2015 Microsoft