Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strncmp(buf,"DELETE ", 4) != 0){ //check the command is DELETE /?
- write(clientfd, msg000, strlen(msg000));
- close(clientfd);
- continue;
- }
- count = 0;
- for(i=4; i<strlen(buf);) {
- fileName[count++] = buf[i++];
- if (buf[i] == ' ') continue;
- }
- fileName[count] = '