Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fscanf(fin,"%[^\n]", buff); //lê o .req até o final
- const char space = ' '; //declaração do char espaço
- char * const spc_at = strchr(buff, space); //procura um espaço entre o GET e o nome do arquivo
- if(spc_at != NULL){
- *spc_at = '\0'; //separa o GET do arquivo a ser processado
- sprintf(file_req, "%s", spc_at + 1); //armazena o nome do arquivo na string file_req
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement