Okay here is the question, what is wrong with this?
typedef struct nntpServerInfo
{
char login[63];
char password[63];
char serverName[32];
int port;
} nntpServerInfo;
int nntpConnect(nnt pServerInfo *);
int nntpConnect(nnt pServerInfo *serverInfo)
{
/* Blah */
}
It gives me the following error:
error: expected ) before * token
which is odd because if I put the closing brace before the pointer star
thingy then it no longer declares the function as excepting a pointer
to a struct, it says it will actually take the whole struct by value
which is not what I want.
Any ideas? I've tried fiddling about with it and can't see what is
going on. It is probably something dead simple but I'll be damned if I
can see what. From what I have read it looks correct.
--
"I disapprove of what you say, but I'll defend to the death your right
to say it." - Voltaire
typedef struct nntpServerInfo
{
char login[63];
char password[63];
char serverName[32];
int port;
} nntpServerInfo;
int nntpConnect(nnt pServerInfo *);
int nntpConnect(nnt pServerInfo *serverInfo)
{
/* Blah */
}
It gives me the following error:
error: expected ) before * token
which is odd because if I put the closing brace before the pointer star
thingy then it no longer declares the function as excepting a pointer
to a struct, it says it will actually take the whole struct by value
which is not what I want.
Any ideas? I've tried fiddling about with it and can't see what is
going on. It is probably something dead simple but I'll be damned if I
can see what. From what I have read it looks correct.
--
"I disapprove of what you say, but I'll defend to the death your right
to say it." - Voltaire
Comment