|
SDDS ToolKit Programs and Libraries for C and Python
|
Provides functions to fill arrays of various data types with a specified value.
Definition in file fill_array.c.
#include "mdb.h"Go to the source code of this file.
Functions | |
| void | fill_double_array (double *array, long n, double value) |
| Fills a double array with the specified value. | |
| void | fill_float_array (float *array, long n, float value) |
| Fills a float array with the specified value. | |
| void | fill_long_array (long *array, long n, long value) |
| Fills a long array with the specified value. | |
| void | fill_int_array (int *array, long n, int value) |
| Fills an int array with the specified value. | |
| void | fill_short_array (short *array, long n, short value) |
| Fills a short array with the specified value. | |
| void fill_double_array | ( | double * | array, |
| long | n, | ||
| double | value ) |
Fills a double array with the specified value.
Assigns the given value to each element of the provided double array.
| array | Pointer to the double array to be filled. |
| n | Number of elements in the array. |
| value | The double value to assign to each array element. |
Definition at line 27 of file fill_array.c.
| void fill_float_array | ( | float * | array, |
| long | n, | ||
| float | value ) |
Fills a float array with the specified value.
Assigns the given value to each element of the provided float array.
| array | Pointer to the float array to be filled. |
| n | Number of elements in the array. |
| value | The float value to assign to each array element. |
Definition at line 41 of file fill_array.c.
| void fill_int_array | ( | int * | array, |
| long | n, | ||
| int | value ) |
Fills an int array with the specified value.
Assigns the given value to each element of the provided int array.
| array | Pointer to the int array to be filled. |
| n | Number of elements in the array. |
| value | The int value to assign to each array element. |
Definition at line 69 of file fill_array.c.
| void fill_long_array | ( | long * | array, |
| long | n, | ||
| long | value ) |
Fills a long array with the specified value.
Assigns the given value to each element of the provided long array.
| array | Pointer to the long array to be filled. |
| n | Number of elements in the array. |
| value | The long value to assign to each array element. |
Definition at line 55 of file fill_array.c.
| void fill_short_array | ( | short * | array, |
| long | n, | ||
| short | value ) |
Fills a short array with the specified value.
Assigns the given value to each element of the provided short array.
| array | Pointer to the short array to be filled. |
| n | Number of elements in the array. |
| value | The short value to assign to each array element. |
Definition at line 83 of file fill_array.c.