memset
void *memset (void *buffer, int initialValue, size_t numberOfBytes);
Purpose
Copies a specified value into a memory block. The specified number of bytes from the beginning of the memory block are set to this value.
Parameters
| Input | ||
| Name | Type | Description |
| initialValue | int | Specifies the value to which the memory block is set. The value is an integer value converted to an unsigned char. The input must be a character with integer value between 0 and 255. |
| numberOfBytes | size_t | Specifies the number of bytes that are set to the specified value. |
| Output | ||
| Name | Type | Description |
| buffer | void * | Contains a pointer to the memory block filled with the specified value. |
Return Value
| Name | Type | Description |
| modifiedBuffer | void * | Contains a pointer to the memory block that is filled with the specified value. |
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later
