I was trying to use the fread() function to take a chunk of input. fread looks for EOF character to detect the end of input so when I was trying to manually provide input at the terminal I was not able to terminate the input since I did nor know what the EOF for windows is. If I remember correctly n linux when I press Ctrl+Z it terminates the input and provides the o/p, but in windows Ctrl+Z was also not working.
Kindly Help.