Re: strcat strncat and strlen



On Mar 31, 3:47 am, santosh <santosh....@xxxxxxxxx> wrote:
Bill Cunningham wrote:
Strncat is supposed to be better than strcat for some reason
I've read.

It does something different to what it's name would suggest. We have had
innumerable threads dealing with this topic. Just do a Google search.

Is this because of a potential buffer overflow?

Well, it can be used with that aim, in which case it leaves an array of
char instead of a string in the destination.

I have compiled properly and used strlen too and I just wonder what is
the need to return a strlen?

Has anyone used quite abit anyway the strlen function?

You are not making any sense. Are you asking why strlen exists? It
should be obvious, even to you. How else do you find the length of a
zero terminated string?

Can you or someone else please explain why everyone is still replying
to this "Bill Cunningham' troll?
It's clear he is a troll. It's been noted countless times and he
*never* replies to the posts that call him a troll.
He always choses to take things out of context, to make
uncomprehensible sentences and ambiguous statements.
It's a troll. So.. why?
.



Relevant Pages

  • Re: Once a week?
    ... >> it up if it means more signal in this newsgroup. ... >lurker and/or poster in smd? ... but a quick google search found out the necessary info. ... I thought at first she was the type of troll that wouldn't let you ...
    (sci.med.dentistry)
  • Re: OT: Google Groups Kill Filter link for Firefox users - Killfile trolls!
    ... After all the destruction that TROLL tried to inflict it ... pukes out something like that. ... Please do a google search on ... Gary Cubeta and its email address to learn the very definition of TROLL. ...
    (rec.games.pinball)
  • Re: Cruise Passenger Sues Over Injury!
    ... >Trial Defense Attorneys? ... I didn't find anything on a Google search? ... You failed to identify the OP who was Clint, a well known troll who I ...
    (rec.travel.cruises)
  • Re: Theyre finding Brown made it all up.
    ... But he shot himself in the foot. ... google search, indeed, would have alerted him to his folly. ... No, the truth is, he's a simple troll, ... Stupid, emotional, and gullible. ...
    (rec.arts.sf.written)
  • Re: Theyre finding Brown made it all up.
    ... A google search, indeed, would have alerted him to his folly. ... Ah, but he _has_ proven himself a troll, to those who know what to look ... Stupid, emotional, and gullible. ... possiblity that one of you is a sock puppet for the other, ...
    (rec.arts.sf.written)