I'm trying to build netcat and include it in a smallish project that just gets the HTML of a webpage. I tried just building netcat to start with, so I included all the sources in a project and hit ctrl+F11. It gave me copious errors, and looking at the source, I can see why (sources are in C, I am using the hobbit's sources, and its the windows version):
void holler (str, p1, p2, p3, p4, p5, p6)
char * str;
char * p1, * p2, * p3, * p4, * p5, * p6;
{
if (o_verbose) {
fprintf (stderr, str, p1, p2, p3, p4, p5, p6);
#ifdef WIN32
if (h_errno)
fprintf (stderr, ": %s\n",winsockstr(h_errno));
#else
if (errno) { /* this gives funny-looking messages, but */
perror (" "); /* it's more portable than sys_errlist[]... */
} /* xxx: do something better. */
#endif
else
fprintf (stderr, "\n");
fflush (stderr);
}
} /* holler */
Huh? Whats this:
void holler (str, p1, p2, p3, p4, p5, p6)
char * str;
char * p1, * p2, * p3, * p4, * p5, * p6;
{
...
I have never seen this before. It certainly doesn't compile! can anyone help me out? The main file that has this function and others with similar stuff is the only one that generates compiler errors. Thanks.