Admin Production ni-theme
Current Publication

FillBytes

LabWindows/CVI

FillBytes

void FillBytes (char buffer[], int startingIndex, size_t numberOfBytes, int value);

Purpose

Sets the numberOfBytes bytes that start at position startingIndex of buffer to the value in the lower byte of value. startingIndex is zero–based.

Parameters

Input
Name Type Description
startingIndex int Zero–based index specifying the offset within the buffer of the first byte to be modified.
numberOfBytes size_t Number of bytes to fill.
value int Value to which the selected bytes will be set. FillBytes uses only the lower 8 bits of the value.
Output
Name Type Description
buffer char [] Specifies the variable in which the bytes to be modified are located.

Return Value

None.

Additional Information

Library: Formatting and I/O Library

Include file: formatio.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later