06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

memmove pREPC+ <strong>System</strong> <strong>Calls</strong><br />

memmove Copies characters in memory.<br />

#include <br />

void *memmove(<br />

void *s1, /* destination address */<br />

const void *s2, /* source address */<br />

size_t n /* source length */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This function copies a specified number of characters from one object into another.<br />

memmove() copies the data correctly even if the memory areas overlap (unlike<br />

memcpy()).<br />

s1 Points to the source object.<br />

s2 Points to the destination object.<br />

n Specifies the number of characters to be copied.<br />

This function returns the value of s1.<br />

None.<br />

3-108 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!