This is just a header file with my typedefs declared. I need to make test functions for every one of these functions below. How would i declare the parameters in the functions so that they can be tested? Like what would i set Rcb *B and ELEMENT_TYPE x to so i can run test functions. Sorry if this is confusing to you, i am a begginner
Code:
typedef char ELEMENT_TYPE[1024];
typedef struct data
{
ELEMENT_TYPE element;
struct data *previous;
struct data *next;
} Data;
typedef struct
{
int size;
Data *spot;
} Rcb;
// FUNCTION PROTOTYPES
Rcb *Create(void);
void Dispose (Rcb *B);
void InsertBefore (ELEMENT_TYPE x, Rcb *B);
void InsertAfter (ELEMENT_TYPE x, Rcb *B);
void Find (ELEMENT_TYPE x, Rcb *B);
void Read (void);
void Write (ELEMENT_TYPE x, Rcb *B);
void Remove (Rcb *B);
void Next (Rcb *B);
void Previous (Rcb *B);
void Clear (Rcb *B);
int Size (Rcb *B);
int isEmpty (Rcb *B);
void Report (Rcb *B);