sprintf("Got Data: %s\n", buffer);
The above is wrong. Was it just a posting error or is it really like that in your program ?
sprintf(InputBuffer, "Got Data: %s\n", buffer);
or
strcpy(InputBuffer,"Got Data: ");
strcat(InputBuffer,buffer);
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005