Hi there
I got stuck, any help please:
I created a function which pass a value to struct in a header structure file, however wrong value returned when I inspect it by other functions, the is code as following:
int ListInit(List* sList, Key key1)
{
sList->count = 0;
sList = NULL;
sList->ckey = key1; /* I need this to by stored in the header file which is below*/
return SUCCESS;
}
Header file
____________________________
typedef struct CarList
{
unsigned ckey; /*in this variable sould be stored then retrieved by the below function*/
} List;
int ListInsert(List *sList){
unsigned key = sList->ckey /* it returns wrong values*/
switch(key){
case 0:{
MakeCompare(sList->temp, sList break;
}
}
}
