Functions for array management.
More...
|
| struct | myarr |
| | A struct to hold an array of integers or an array of doubles, along with the length of the arrays. More...
|
| |
Functions for array management.
◆ freemyarr()
| void freemyarr |
( |
struct myarr * |
arr | ) |
|
@ struct.
- Parameters
-
| arr | A pointer to the myarr struct whose arrays are to be freed. |
◆ makemyarr()
| struct myarr * makemyarr |
( |
size_t |
ArrayLength | ) |
|
@ the specified length.
- Parameters
-
| ArrayLength | The length of the integer array to be created. |
- Returns
- A pointer to the newly created myarr struct with the integer array.
◆ makemyarrd()
| struct myarr * makemyarrd |
( |
size_t |
ArrayLength | ) |
|
@ specified length.
- Parameters
-
| ArrayLength | The length of the double array to be created. |
- Returns
- A pointer to the newly created myarr struct with the double array.
◆ syncAppendMyarr()
| void syncAppendMyarr |
( |
struct myarr * |
input, |
|
|
FILE * |
file |
|
) |
| |
@ in a separate thread.
- Parameters
-
| input | Pointer to the input myarr struct to append. |
| file | Pointer to the file to append to. |
◆ threadAppendMyarr()
| void * threadAppendMyarr |
( |
void * |
inStruct | ) |
|
@ file in a separate thread.
- Parameters
-
| inStruct | Pointer to the append_task struct containing the myarr and file information. |
- Returns
- NULL on completion.