I suppose that you take the string from a file content.
Hope this help you...
--
char *aux1,aux2[7],buffer[50],var[200];
// read a file line content up to the end
// of the line in the present string
fgets(buffer,200,file2);
sscanf(buffer,"%s", &var);
aux1=&var[0];
count=0...