• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Can I use PIPE_BUF?

Hello group,

I am using a constant value as

         #define BUFSZ PIPE_BUF

to be used in declaration of an array. Is that fine? I'm using it since I found it is used in a book (Linux Programming by Example) while piping and calling an extranal utility.


1 Solution
>> Is that fine?

Sure, why not ? PIPE_BUF is just a value (like 4096 for example), so you can use it as such.
akohanAuthor Commented:

Thanks indeed.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get Certified for a Job in Cybersecurity

Want an exciting career in an emerging field? Earn your MS in Cybersecurity and get certified in ethical hacking or computer forensic investigation. WGU’s MSCSIA degree program was designed to meet the most recent U.S. Department of Homeland Security (DHS) and NSA guidelines.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now