This is my code from searching on the forums!!
However it is not clearing the buffer and is displaying the same message as i typed in previously, where have i gone wrong!!Code:printf("Enter Message in text:"); fgets (message, 500, stdin ); printMessage (); fflush(stdout); clearBuffer (); void clearBuffer() { while((c = getchar()) != EOF && c != '\n') { ; } }