tico 0.1
Mechanical Watch Terminal Timegrapher
Data Structures | Functions
Myarr Library

Functions for array management. More...

Data Structures

struct  myarr
 A struct to hold an array of integers or an array of doubles, along with the length of the arrays. More...
 

Functions

void freemyarr (struct myarr *arr)
 @ struct. More...
 
struct myarrmakemyarr (size_t ArrayLength)
 @ the specified length. More...
 
struct myarrmakemyarrd (size_t ArrayLength)
 @ specified length. More...
 
void syncAppendMyarr (struct myarr *input, FILE *file)
 @ in a separate thread. More...
 
void * threadAppendMyarr (void *inStruct)
 @ file in a separate thread. More...
 

Detailed Description

Functions for array management.

Function Documentation

◆ freemyarr()

void freemyarr ( struct myarr arr)

@ struct.

Parameters
arrA pointer to the myarr struct whose arrays are to be freed.

◆ makemyarr()

struct myarr * makemyarr ( size_t  ArrayLength)

@ the specified length.

Parameters
ArrayLengthThe 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
ArrayLengthThe 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
inputPointer to the input myarr struct to append.
filePointer to the file to append to.

◆ threadAppendMyarr()

void * threadAppendMyarr ( void *  inStruct)

@ file in a separate thread.

Parameters
inStructPointer to the append_task struct containing the myarr and file information.
Returns
NULL on completion.