Subj : Re: Software Job Market Myths To : comp.programming,comp.software-eng From : Matt Atterbury Date : Thu Aug 18 2005 02:11 pm CTips writes: > >>>>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 ... I suspect the problem is that `str' is a POSIX standard, and, in isolation, this code is not [necessarily] POSIX compliant. OTOH, the compiler might [be able to] enforce/check POSIX compliance without the header file. NFI why `const' is "wrong" :-) m. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Matt Atterbury CTI Pty Ltd .