Guardian C Library Calls Reference Manual

memmove
3-120 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
memmove
The memmove function moves one block of memory to another. If the destination block
overlaps the source block, memmove preserves the data in the overlapping portion of the
source block. Consequently, memmove is slower than memcpy.
dest_blk
points to the block to move data to.
source_blk
points to the block to move data from.
move_count
is the number of bytes to move.
Return Value
is dest_blk.
memset
The memset function fills a block of memory with a given byte value.
block
points to the block to fill.
value
is the value to fill *block with; it is converted to an unsigned char.
block_size
is the size in bytes of the block to fill.
Return Value
is block.
#include <stringh>
void *memmove(void *dest_blk, const void *source_blk,
size_t move_count);
#include <stringh>
void *memset(void *block, int value, size_t block_size);