-
wondering if...
this is a stupid question but is there a way i could put these two else if into one else if?
Code:
else if((strcmp(temp, "get / http/1.1")) == 0)
{
printf("\nHTTP/1.1 200 OK\n");
printf("Server: Xitami/2.5d4 (Win32)\n");
printf("Last-Modified: Fri, 18 Jan 2002\n\n");
first();
}
else if((strcmp(temp, "get http/1.1")) == 0)
{
printf("\nHTTP/1.1 200 OK\n");
printf("Server: Xitami/2.5d4 (Win32)\n");
printf("Last-Modified: Fri, 18 Jan 2002\n\n");
first();
}
thanks
-
Re: wondering if...
Code:
else if(((strcmp(temp, "get / http/1.1")) == 0) ||
((strcmp(temp, "get http/1.1")) == 0))
{
printf("\nHTTP/1.1 200 OK\n");
printf("Server: Xitami/2.5d4 (Win32)\n");
printf("Last-Modified: Fri, 18 Jan 2002\n\n");
first();
}
-