H
Harald van Dijk
What Navia and/or Microsoft do has nothing whatsoever to do with it.
What jacob navia and Microsoft do has everything to do with whether their
implementations conform to the C standard.
What Navia and/or Microsoft do has nothing whatsoever to do with it.
Harald said:What jacob navia and Microsoft do has everything to do with whether
their implementations conform to the C standard.
CBFalconer said:anything at all.
Just plain 'doesn't work'. Lookup the return value of puts.
CBFalconer said:What Navia and/or Microsoft do has nothing whatsoever to do with
it. Simply read the C standard, or something reasonably close,
such as N869 or N1276.
Serve said:lccwin32 follows msvc as a windows development tool. If microsoft
followed the C standard back in 1998 when they introduced msvc6,
lccwin32 wouldnt have had min and max in stdlib either.
They should have followed the standard yes, but lccwin32 tries to have
software compatible with microsoft's tools above all (correct me if I'm
wrong) It isnt so strange for a windows compiler (lccwin32) to follow
the most used windows development tool for C in the world (msvc)
jacob said:.... snip ...
Well that is exactly the position I had. I tried to be compatible
with what Microsoft said.
I remember when I started writing those headers, and my frame of
mind at that time wasn't really a "language lawyer" mindset. I saw
it in the stdlib.h from msvc 4.1 (if I remember correctly) I said
myself that those are useful macros, I put them there, and there
they stayed until now. This user has seen this problem, and I
thank him for this bug report.
Ben said:It works fine. I think you missed the point of the example (now
lost since you snipped the key part).
I don't think there is any argument that "max(a, b)" should return
one of the values a or b.
CBFalconer said:I don't think there is any argument that "max(a, b)" should return
one of the values a or b.
from puts, which is (from N869):
Flash Gordon said:CBFalconer wrote, On 06/01/08 22:31:
<snip irrelevant material>
Yes there is. The one Ben wrote should *not* return either a or b. The
entire point was that the behaviour would be different if stdlib.h
defines max.
Ben said:It was Army1987 not me. I just "stepped up" when the example was
misinterpreted.
It was Army1987 not me. I just "stepped up" when the example was
misinterpreted.
N1256 .What Navia and/or Microsoft do has nothing whatsoever to do with
it. Simply read the C standard, or something reasonably close,
such as N869 or N1276.
David said:N1256 .
CBFalconer said:Which doesn't have a greppable (etc.) text version, which N869
does. In fact you can get N869.txt compressed to about 85k bytes
from my site, as N869_txt.bz2.
santosh said:You can convert n1256.pdf to a horrid, poorly formatted text file
using many easily available utilities which you can then "grep" to
find the relevant sections and go to them directly in the PDF file.
But personally I find that search has improved significantly on
recent versions of Adobe's PDF reader.
CBFalconer said:But, surprise, I can avoid all that nonsense by simply using the
pre-formatted and relatively compact N869.txt. It can be read with
less, searched with grep, etc. etc. etc. I don't even need any
monstrous oversized .pdf readers to access it. I can even cut and
paste.
Martin said:<ot>
You might find the not-monstrous-oversized ghostview a reasonable
choice for reading .pdf files. Not only is the footprint much
smaller, but files load much faster.
</ot>
Is is smaller than more.com (mine)? or list, or less. Can it be
searched with grep.
more.com Oct 18 1988 435
list.com Jan 22 2004 28211
less.exe Apr 5 2002 204800
grep.exe Aug 12 2007 84240
CBFalconer said:Is is smaller than more.com (mine)? or list, or less. Can it be
searched with grep.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.