I thought i had complex declarations nailed, as in i could tell you what a pointer to an array of functions that returned int and took doubles as arguments looked like i find this little horror:
/Return the IP address of a domain name DECLARE_STDCALL_P(struct hostent *) gethostbyname(const char*); //Convert a string address (i.e., "127.0.0.1") to an IP address. Note that //this function returns the address into the correct byte order for us so //that we do not need to do any conversions (see next section) unsigned long PASCAL inet_addr(const char*);
DECLARE_STDCALL_P(struct hostent *) gethostbyname(const char*);
what is this? Looks like two function declarations but without return types and no semi colons separating them?
unsigned long PASCAL inet_addr(const char*);
what the hell is the PASCAL doing there? without that it would make sense to me: a function called inet_addr that took a const char* as a parameter and returned a ulong.
Please help this is driving me crazy!
Edited 7 Years Ago by Vitriolics: idioacy