i have a function that works for integers.
e.g.
typedef int Telem;
int readValue(Telem *testdata)
{
if (scanf("%d", testdata)!= 1)
return 0;
else return 1;
}
now i converted the integer into a struct
typedef struct Telem{
int entrytime;
int cust_num;
int waitime;
};
how will i call this function now?and how i will use scanf for all the members of the struct?
thank u