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.

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

memset Initializes memory with a given value.<br />

#include <br />

void *memset(<br />

void *s, /* object address */<br />

int c, /* initialization value */<br />

size_t n /* number of characters */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

The memset() function copies the value of c (converted to an unsigned char) into<br />

each of the first n characters in the object pointed to by s.<br />

s Points to the object where the character is to be copied.<br />

c Specifies the value to be copied.<br />

n Specifies the number of characters in the object to be<br />

initialized.<br />

The function returns the value of s.<br />

None.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

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