I haven't done C programming in AGES and for some reason, I can't seem to recall how to handle stuff like this.
In my .h file, I have a struct defined as:
struct tagCLIENT
{
char * advertisedIPAddr;
char* actualIPAddr;
char * clientID;
int udpPort;
time_t age;
} CLIENT;
I then have a function:
CLIENT** LoadClientsFile(char* filename);
I'm getting an error on this last line. I assume, for some, it doesn't like the CLIENT**.
I'm actually compiling with gcc, so the error message is a bit differen than I'd probably get with MS C/C++ compiler. The error message is simply, "syntax error before '*' token"
What am I doing wrong?
If I change the return type to void* it works fine.
Thanks.
Enter your message below
Sign in or Join us (it's free).