All,
I have a file pointer and i need to keep track of it in two functions to which i have passed it.My problem is like below.
void temp(file* fp)
{
temp1(fp);
}
void temp1(file* fp)
{
...
...
i am reading a line of the file here
}
i need to keep track of the file pointer in both the funcitons...how should i do it...
advance thanks
I have a file pointer and i need to keep track of it in two functions to which i have passed it.My problem is like below.
void temp(file* fp)
{
temp1(fp);
}
void temp1(file* fp)
{
...
...
i am reading a line of the file here
}
i need to keep track of the file pointer in both the funcitons...how should i do it...
advance thanks