Solved

Can I use PIPE_BUF?

Posted on 2008-10-29
2
313 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
ID: 22829304
>> 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
ID: 22833865


Thanks indeed.

0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handling string inputs in C/Linux 23 187
how to understand recursion 12 229
Detect CR LF to each line 12 170
Problem to show menu 5 93
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

856 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