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.

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

strcpy Copies one string to another string.<br />

#include <br />

char *strcpy(<br />

char *s1, /* destination string */<br />

const char *s2 /* source string */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

This function copies one string (s2) including the null character, into another string<br />

(s1). strcpy() continues to copy characters until it detects a null terminator. If the<br />

strings overlap, the result is unpredictable.<br />

s1 Points to the destination string.<br />

s2 Points to the source string.<br />

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

None.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

3-148 <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!