Share via


Buffer Manipulation (Windows Embedded CE 6.0)

1/5/2010

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

For detailed reference information about the CRT functions, see Alphabetical Function Reference (CRT).

Routine Use

_memccpy

Copy characters from one buffer to another until given character or given number of characters has been copied

memchr, wmemchr

Return pointer to first occurrence, within specified number of characters, of given character in buffer

memcmp, wmemcmp

Compare specified number of characters from two buffers

memcpy, wmemcpy

Copy specified number of characters from one buffer to another.

These functions have been deprecated because a more secure version, memcpy_s, exists.

memcpy_s

Copies bytes between buffers.

Security-enhanced version of deprecated function memcpy.

_memicmp

Compare specified number of characters from two buffers without regard to case

memmove

Copy specified number of characters from one buffer to another.

This functions has been deprecated because a more secure version, memmove_s, exists.

memmove_s

Moves one buffer to another.

Security-enhanced version of deprecated function memmove.

memset, wmemset

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.

See Also

Concepts

Run-Time Routines by Category

Other Resources

C/C++ Libraries for Windows Embedded CE
What's New in the C Run-Time Library