N
nick048
Hi to all,
In a little program, I have this code:
i=0;
receved = recv(new_sd, &c, 1, 0);
while (c !='\n')
{
msg[i++]=c;
receved = recv(new_sd, &c, 1, 0);
}
msg='\0';
My program work fine; but i need change the end from '\n' to '**'[/
b]. How can modify my code in order to exit from while when the
terminator '**' is received ?
I hope in your help.
Thank You and best regards
Nick
In a little program, I have this code:
i=0;
receved = recv(new_sd, &c, 1, 0);
while (c !='\n')
{
msg[i++]=c;
receved = recv(new_sd, &c, 1, 0);
}
msg='\0';
My program work fine; but i need change the end from '\n' to '**'[/
b]. How can modify my code in order to exit from while when the
terminator '**' is received ?
I hope in your help.
Thank You and best regards
Nick