Where can I find function that reads EOF data in C/C++?

In google I mostly find while loops that go until EOF.I need func that reads EOF.