title
Buffer Manipulation | Microsoft Docs
ms.custom
ms.date
11/04/2016
ms.reviewer
ms.suite
ms.technology
ms.tgt_pltfrm
ms.topic
article
f1_keywords
dev_langs
helpviewer_keywords
buffers, manipulation routines
buffers
ms.assetid
164f4860-ce66-412c-8291-396fbd70f03e
caps.latest.revision
9
author
corob-msft
ms.author
corob
manager
ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw
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, 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 , memcpy_s, wmemcpy_s
Copy specified number of characters from one buffer to another
_memicmp, _memicmp_l
Compare specified number of characters from two buffers without regard to case
memmove, wmemmove ,memmove_s, wmemmove_s
Copy specified number of characters from one buffer to another
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.
Run-Time Routines by Category