Content deleted Content added
→Doesn't quite work: strcat does have to start from the begining and Schlemiel is Pandemic/widespread |
OldCodger2 (talk | contribs) m →Doesn't quite work: PS I know whereof I speak,and I even created an account too |
||
Line 56:
strcat() isn't calculating the length: it's merely looking for the terminating NUL. Also, it doesn't have to walk back to the start of the string; at the next call, <em>it's already there</em>. One can only assume that there is some sort of teleportation device in use here… [[User:Dsalt|Dsalt]] ([[User talk:Dsalt|talk]]) 12:49, 12 December 2009 (UTC)
uh, dude, you better read Joel again... strcat does indeed start over at the begining with each new request (I'm guessing that you are not actually a programmer?). strcat does not and cannot retain any knowledge about the previous state of the strings that it has been handed, therefore it must start at the begining. IMHO this is a classic example of why C is a very defective language and a blight upon the computer industry. In reference to the debate about about how widespread the problem is, yes, it is indeed a pandemic, strcat is used everywhere, as are c-strings, which is the actual root of this problem, and many other related problems such as the endless number of buffer overflow exploits, all being caused by this fundamental bad design of the C language.
== Can't we take down the notability banner yet? ==
|