I have 2 fgets into my code and both of them aren't wait for input...
This is an example of the first fgets
...
printf("Insert path: ");
if(fgets(dirpath, BUFFGETS, stdin) == NULL){
perror("fgets dir path");
close(sockd);
}
and, as i've written before, also the next fgets is not waiting for my input :(
Before the first fgets
i have 2 scanf("%ms", &string);
(if this could be the trouble).