Subj : Re: Software Job Market Myths To : comp.programming,comp.software-eng From : CTips Date : Thu Aug 18 2005 07:50 pm Chris Sonnack wrote: > CTips writes: > > >>>>Hint: you forgot a #include ... >>> >>>NFI why `const' is "wrong" :-) >> >>This code might be running on a freestanding implementation, in >>which case the strcat/strcpy functions might be roll-your-owns, >>in which case both the str being reserved and the addition of >>const-ness are not correct. > > > *Maybe* on the use of the str without the #include, but I really > don't see why the const would be wrong in a RYO. > Because the strcat/strcpy didn't use const's? You'd get warnings/errors from the compiler. .