chunalt787 28 Junior Poster in Training

I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is there any way to check if the named pipe is empty before I read? Its just a file and I have a file descriptor so checking the file would probably work as well. I can't seem to find a way to do this on google.

Thanks