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
Ranked #72.7K
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); // … |
|
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 … |