can someone tell me which loop i'll break out of and where i'll end up?
for (I=0; I < spaceCounter; I++)
{
while (ptr2 != ptr1)
{
if (*ptr2 == ' ')
{
if (alternate == 1)
{
while (*ptr2 == ' ')
{
*ptr3++ = *ptr2++;
}
*ptr3++ = ' ';
alternate = 0;
break;
}
else
{
while (*ptr2 == ' ')
{
*ptr3++ = *ptr2++;
}
alternate = 1;
}
}
else
{
*ptr3++ = *ptr2++;
}
}
}