Download pSOSystem System Calls

Transcript
memset
pREPC+ System Calls
memset
Initializes memory with a given value.
#include <string.h>
void *memset(
void *s,
/* object address */
int c,
/* initialization value */
size_t n
/* number of characters */
)
Description
The memset() function copies the value of c (converted to an unsigned char) into
each of the first n characters in the object pointed to by s.
Arguments
s
Points to the object where the character is to be copied.
c
Specifies the value to be copied.
n
Specifies the number of characters in the object to be
initialized.
Return Value
The function returns the value of s.
Error Codes
None.
Notes
Callable From
3-110
■
Task
■
ISR
pSOSystem System Calls