Help with Cast

This is a discussion on Help with Cast within the Linux Programming forums, part of the Platform Specific Boards category; Hi everyone,
I'm getting a warning when I try to do the (char *) cast on &buf, What is the ...

That's fine then - it's just that I've seen quite a few posts where someone is trying to read a text-file using read (or write it using write) and then complaining that the code doesn't work right - usually pointing at some completely different portion of code [such as the output or calculations]. I was just making sure that you are doing things the way they are meant to be done.