what do you think "buffer" means?
It could mean a location somewhere in a stream. For example *nix's dd
command. I use it a bit. It could mean point to a specific place in a
buffer. Like dd's seek option and like C's fseek. I guess you can't use
that parameter for that though.
Bill, these /might/ be valid uses of the word "buffer", but I've never
encountered them. In fact, the dd(1) manual page doesn't use the
word "buffer" to indicate "a location in a stream"; heck, it doesn't use
the word "buffer" at all.
~ $ man dd | grep buffer
~ $
OTOH, FOLDOC's definition (
http://foldoc.org/buffer) is almost exactly what
I learned over 30 years ago in my programming classes; something
that /every/ programmer I've ever talked to seems to agree with
1. An area of memory used for storing messages. Typically, a buffer will
have other attributes such as an input pointer (where new data will be
written into the buffer), and output pointer (where the next item will
be read from) and/or a count of the space used or free. Buffers are
used to decouple processes so that the reader and writer may operate at
different speeds or on different sized blocks of data.
2. An electronic device to provide compatibility between two signals, e.g.
changing voltage levels or current capability.
clc is so topic specific that when a thead goes on and on there is not
much left to talk about except standard C functions. The same thing over
and over.
Hmmmm..... Perhaps that's not a bad thing. In your case, you could learn a
lot from such a discussion.
But, I've seen a lot of discussions here on general programming practice, as
applied to programming in the C language. (I.e. sorting techniques,
recursion, string handling, tree management, etc.)
And, I've seen a lot of discussions on various "non-standard" elements, as
approached by C code that meets the C standard (i.e. handling "packed
decimal" values in C code, handling characterset translations in C code,
etc.)
As I said, you could learn a lot from reading /and trying to comprehend/
those discussions.