Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~143 People Reached
Favorite Forums
Favorite Tags
c x 2
Member Avatar for nick048

Hi In the main I have declared a variable char string[100]; I need to construct this variable with a function and I have written the code: [code]char stringReceived(int sockDesc){ char unsigned c; char tmp[100] = " "; int i=0; int n; do { n = recv(sockDesc, &c, 1, 0); // …

Member Avatar for mariocatch
0
64
Member Avatar for nick048

Hi to all, In my little server program, I have this code: [code]i=0; charRecv = recv(nSocketDesc, &c, 1, 0); while (c !='\n') { mystring[i++]=c; charRecv = recv(nSocketDesc, &c, 1, 0); } // End while (c !='\n') mystring[i]='\0';[/code] 'c' are a sequence of char sended to server from a client and …

Member Avatar for Ancient Dragon
0
79