OK I got it working now, thanks
Type: Posts; User: aydinh
OK I got it working now, thanks
I don't understand what you mean, can you elaborate please?
The malloc is before the accept loop, it is there:
params = (struct funcparams *) malloc(sizeof(struct funcparams));
The struct is:
struct funcparams {
int sd;
Hi I have built a simple web server in C, and I now have to make it multi threaded. I also have to produce a multi threaded command line client to test the multi-threaded capability of the server. I...
Yeah I think I will do that now. I've just got my order messed up. I used stat on the full string before this function is called, but obviously like you said I need to do it for each token
Forgot to copy the chdir bit. Erm well if I pass the function folder/folder1/folder2 It creates those folders just like that, one inside another. Just need a way to test if there is ../ and chdir...
Hi I am using the following code to tokenise a string which contains a relative directory and then create the directory structure. Works fine for stuff like folder/folder1/folder2, but doesn't work...
Cheers. Never even thought about that, been racking my brain for ages.
Hi in my program there is an option to enter a directory as a command line argument. Is there any check I can perform to see whether this directory is relative to the current working directory?
...