06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

memcpy Copies characters in memory.<br />

#include <br />

void *memcpy(<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 n characters from the object pointed to by s2 into the object<br />

pointed to by s1. If the memory areas overlap, the result is unpredictable.<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-106 <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!