R
Robert
Hi,
I am new to c and use to program in basic before so i was
wondering why this isn't working:
char geturl(char *header, int client)
{
char *url;
char *filename;
char *tmpstring;
url = strtok(header, " ");
url = strtok(NULL, " ");
if (url == "/")
url="index.html";
puts (url);
if url = / then it stay's this way
why? what is wrong with this?
Many thanks,
Robert
I am new to c and use to program in basic before so i was
wondering why this isn't working:
char geturl(char *header, int client)
{
char *url;
char *filename;
char *tmpstring;
url = strtok(header, " ");
url = strtok(NULL, " ");
if (url == "/")
url="index.html";
puts (url);
if url = / then it stay's this way
why? what is wrong with this?
Many thanks,
Robert