V
Vladimir S. Oka
pete opined:
In which case we actually agree.
Yes, but in this case they seem to be intertwined since C language
features have a bearing on the method chosen. In any case, I tend not
to /discuss/ algorithm issues here, but I do offer an odd idea.
Admittedly, my comment was unnecessary, to say the least, and certainly
vacuous. I did not express /any/ opinion about your code, though.
Let's say I made a clumsy, and unnecessary reference to another post
that did.
If you still feel I was grossly off-topic, I apologise, but beg to
disagree, and let's leave it at that.
--
BR, Vladimir
So far as I can remember, there is not one word in the Gospels in
praise of intelligence.
-- Bertrand Russell
Vladimir said:pete wrote:
Vladimir S. Oka wrote:
sudharsan opined:
could any one please give me a code to reverse a string of
more than 1MB .???
Why do you think it would be different to
the one for strings less than 1MB?
Because a conforming implementation of C,
is not required to be able to translate and execute
a program which excedes the minimum translation limits.
strlen isn't required to work right on a string that long.
The business in the standard about the ptrdiff_t type
not being guaranteed to be able to do its job,
is most appropriately applied to code with objects
which exceede the translation limits.
I've seen strlen implemented on this newsgroup
in ways which depend upon the ptrdiff_t type
being able to do its job.
All you say is fine,
but I don't see how it applies to your quote of
what I said.
Unless you took to the word "code" in the OP to meant "exact
implementation detail",
while I read it as "the [general] method". In
I took it to mean exact "implementation detail"
and the reason that I did,
is because the exact implementation detail
depends on the length of the string.
In which case we actually agree.
The difference in methodology,
depending on the length of the string, is a c language issue.
To me, "the [general] method" sounds like an algorithm issue.
This is a c language newsgroup, not an algorithm newsgroup.
Yes, but in this case they seem to be intertwined since C language
features have a bearing on the method chosen. In any case, I tend not
to /discuss/ algorithm issues here, but I do offer an odd idea.
Too bad that you didn't.
You could have opinion of your own about the code, if you had.
Admittedly, my comment was unnecessary, to say the least, and certainly
vacuous. I did not express /any/ opinion about your code, though.
Let's say I made a clumsy, and unnecessary reference to another post
that did.
If you still feel I was grossly off-topic, I apologise, but beg to
disagree, and let's leave it at that.
--
BR, Vladimir
So far as I can remember, there is not one word in the Gospels in
praise of intelligence.
-- Bertrand Russell