Eric Sosman wrote:
> On 7/1/2010 11:13 PM, Uno wrote:
>> Eric Sosman wrote:
>>
>>>> I'm looking for more of this source, but as a macro neophyte, I have no
>>>> method for this.
>>>
>>> Do you have the book the source comes from? It's a good book
>>> and does a good job of explaining why the source looks the way it
>>> does, but it presupposes a certain proficiency in C. If you're
>>> just looking at the source without the book's explanations (and
>>> especially if you're the neophyte you say you are), I don't think
>>> you're likely to gain much understanding. Get the book if you
>>> don't already have it, and read it if you do.
>>
>> What I meant when I said that I was looking for more of this source, I
>> was trying to find it on my own system, with which I have only 6 months
>> experience. My search for stdio.h turned up 7 results, and I was sunk.
>
> Do you understand that Plauger's code is *a* way of implementing the
> Standard library, not *the* way? The library implementation(s) you
> find on your system will certainly be different from Plauger's, in
> detail and perhaps in overall structure.
That's one thing that Keith has taught me over the years, namely, that
trapseing through the headers on your own implementation might not be
the best way to do what you're trying to achieve.
[OT]
Is there a linux or gcc command that will tell me the inclusion tree for
stdio.h?
>
>> Plauger's book is fascinating, and he was nice enough to send me the
>> source, so if I have trouble with any part of it, I can learn from my
>> compiler. (or copy, paste, and post to usenet)
>
> He sent you the code *and* permission to redistribute? I think
> you should double-check before posting too freely. "Fair use" covers
> a certain amount of copying (IANAL), but there's a limit.
Yeah, and again he is really cool about it. You *can* use his stuff and
make money off it; you simply have to acknowledge.
My quoting a paragraph here or line there could never be stitched
together into a workproduct; you would need *all* of the source.
I will tell people how to write a very gracious man and replicate my
steps to getting the soft version of Plauger's library. I would
consider owning his book _The C Standard Library_ as a prereq. During
the formation of the C standard, he chaired the effort on the standard
library.
My particular interest is not that I want to write a standard library
myself, but I want to be able to use C to call whatever library I need.
I've come to learn that "library" can mean "any number you can calculate
with fortran."
>
>> It will be the only book that comes with me to Lake Heron, NM now for 4
>> days of camping at 7200 feet. I'll waive to you in your Arizona
>> swelter.
>
> Never been there; not likely to go. And it's "wave."
Your loss, it's beautiful. It was a little bit rugged up there, tho.
We camped in tents but could easily walk to a place where you have
electricity and could take a duke on a toilet with proper plumbing and
sanitation. (That's my dealbreaker for "roughing it.")
It has what every C programmer wants: no bugs.
--
Uno