Hi,I,m writing puts()function and I want to know that I which situations it returns EOF
I know that when there is an error it return EOF but whad does it mean.
can you give me an example?
Jump to Post
If there's a write error to the destination stream, you'll get a return value of
EOF. Typically this means something along the lines of the target device no longer being available or getting corrupted. However, since
stdout, this is rather unlikely unless you've redirected
stdoutto a …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.