Last active
April 9, 2020 23:11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void getMessage() | |
{ | |
char msg[200]; | |
printf("Enter message: "); | |
scanf("%s",msg); | |
// do something. | |
printf("The message has been received."); | |
} | |
int main() | |
{ | |
setvbuf(stdin,0,2,0); // to set input and output buffer zero, to serve on network. | |
setvbuf(stdout,0,2,0); | |
getMessage(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment