Subj : Re: Software Job Market Myths To : comp.programming,comp.software-eng From : CTips Date : Wed Aug 17 2005 10:57 pm Chris Sonnack wrote: > CTips writes: > > >>>>> char* strconcat(char* s1, char* s2) >>>>> { >>>>> char buf[256]; >>>>> >>>>> strcpy(buf, s1); >>>>> strcat(buf, s2); >>>>> >>>>> return buf; >>>>> } > > >>>>Firstly, the name is wrong. (Why?) >>> >>>Yep. (Conflicts with authority.) > > >>>>Secondly, some qualifiers are missing from the input parameters. >>>>(Which?) >>> >>>Yep. (I'm constantly wondering about stuff like that.) > > >>Sorry, you're both wrong about these two. Care to guess why? >> >>[Yes, its a little nit-picky, but as long as we're testing C >>programmers, we might as well get it right.] > > > Okay, I'll fessup--I'm stumped. > Hint: you forgot a #include ... .