Im working on the following code in C, which has to read a char, then filter the symbol - from the char, and write it back without the - symbol to a new char.
But im currently running into some compile errors, I've been looking around how to work with memset and strcat but still cannot figure out what is going wrong.

Please help me out
char neww[255];
memset(neww, 0, 255);
for(int i = 0; i<strlen(pid+1); i++)
         { if(pid[i] != "-");
           strcat(neww, pid[i]);

where the char pid contains a value like 3434-111-12222-222.
Any suggestions, help ? thank you in advance