B
broli
i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
contradictions. It doesn't seem like K & R 2 covers it either.
broli said:i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
Covers what? Ah, file IO. Please put your question in the body of your
post.
What don't you understand? fread and fwrite are pretty straightforward
functions.
broli said:Please don't quote signatures.
I think open and read are the commands used for low level file
operations.
I think open and read are the commands used for low level file
operations.
You are confusing POSIX I/O functions with those from standard C. C
offers the 'f' family of functions which operate on FILE* streams.
POSIX functions use file descriptors.
broli said:I think open and read are the commands used for low level file
operations.
Ian Collins said:Covers what? Ah, file IO. Please put your question in the body of your
post.
What don't you understand? fread and fwrite are pretty straightforward
functions.
broli said:i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
broli said:i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
broli said:i looked up a few on the internet but it seems there is way too much
contradictions. It doesn't seem like K & R 2 covers it either.
Default said:Incorrect. Look at chapter 8 of K&R2, UNIX system interface,
specifically:
8.2 Low Level I/O - Read and Write
CBFalconer said:That is not part of the language. It is an indication of the
implementation. The chapter is so marked.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.