Solved

Can I use PIPE_BUF?

Posted on 2008-10-29
2
310 Views
Last Modified: 2008-10-29
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.

Thanks,
ak

0
Comment
Question by:akohan
2 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 50 total points
Comment Utility
>> Is that fine?

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

Author Comment

by:akohan
Comment Utility


Thanks indeed.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now