Solved

Can I use PIPE_BUF?

Posted on 2008-10-29
2
312 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Passing command line arguments in C 10 90
C language IDE – Compilers installation 14 71
distributed computing in Python 4 123
nested if statement in excel help 4 26
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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

773 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