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?
habib_6
0
Newbie Poster
Recommended Answers
Jump to PostIf 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, sinceputs
writes tostdout
, this is rather unlikely unless you've redirectedstdout
to a …
All 2 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.