For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > May 2004 > buffering









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author buffering
J Wang

2004-05-12, 9:08 pm


in the APUE by Stevens,

there are one line in the program 5.3
print buffering for various standard I/O streams

as follows:

printf(", buffer size = %d\n", fp->_bufsiz);

compiling error is :

structure has no member named `_bufsiz

the FILE structure has the bufsiz member as integer

could you give me some explaination?

cheers,


Barry Margolin

2004-05-12, 9:08 pm

In article <Pine.GSO.4.44.0405110251550.12788-100000@midge.bath.ac.uk>,
J Wang <csmjbw@bath.ac.uk> wrote:

> in the APUE by Stevens,
>
> there are one line in the program 5.3
> print buffering for various standard I/O streams
>
> as follows:
>
> printf(", buffer size = %d\n", fp->_bufsiz);
>
> compiling error is :
>
> structure has no member named `_bufsiz
>
> the FILE structure has the bufsiz member as integer
>
> could you give me some explaination?


If the name of the member is "bufsiz" on your OS, then you should use
that instead of "_bufsiz".

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com