EOF character in Windows

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.

Hello,

I believe that this thread here might have the answer to your question…

This is a somewhat tricky question and it’s highly dependent on how the input is being taken and the OS being used…

Nontheless, I hope this helps!

Best regards,

Bruno

1 Like

Will this help?

Try Ctrl + C .

//